From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtzhL-0003EW-1i for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtzhD-0007cG-Je for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:33:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtzhD-0007c6-8y for qemu-devel@nongnu.org; Mon, 09 Jun 2014 09:33:07 -0400 Date: Mon, 9 Jun 2014 15:32:57 +0200 From: Igor Mammedov Message-ID: <20140609153257.49d4460f@thinkpad> In-Reply-To: <5395AF7F.7000403@redhat.com> References: <66e17e32ccb10ca0ae262103fcf170b84511c3f8.1402299637.git.hutao@cn.fujitsu.com> <20140609143622.44fa7006@thinkpad> <5395AF7F.7000403@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 28/29] qmp: add query-memdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Hu Tao , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Eduardo Habkost , Yasunori Goto On Mon, 09 Jun 2014 14:58:39 +0200 Paolo Bonzini wrote: > Il 09/06/2014 14:36, Igor Mammedov ha scritto: > >> > +{ 'type': 'Memdev', > >> > + 'data': { > >> > + 'size': 'size', > >> > + 'merge': 'bool', > >> > + 'dump': 'bool', > >> > + 'prealloc': 'bool', > >> > + 'host-nodes': ['uint16'], > >> > + 'policy': 'HostMemPolicy' }} > >> > + > >> > +## > >> > +# @query-memdev: > >> > +# > >> > +# Returns information for all memory devices. > >> > +# > >> > +# Returns: a list of @Memdev. > >> > +# > >> > +# Since: 2.1 > >> > +## > >> > +{ 'command': 'query-memdev', 'returns': ['Memdev'] } > > Could we make it union, that returns MemdevRam + MemdevFile > > > > MemdevFile will have additional file-only specific properties. > > > > Which are the file-only properties (in the current definition of Memdev)? in current none, but for file backend exposing 'path' property might be useful alternatively instead of union we could add 'type' and optional 'path' fields to Memdev > > Paolo > -- Regards, Igor