From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu3Je-0000gN-IY for qemu-devel@nongnu.org; Mon, 09 Jun 2014 13:25:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu3JZ-000089-Iq for qemu-devel@nongnu.org; Mon, 09 Jun 2014 13:25:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu3JZ-00007x-Ar for qemu-devel@nongnu.org; Mon, 09 Jun 2014 13:24:57 -0400 Message-ID: <5395EDE3.7020306@redhat.com> Date: Mon, 09 Jun 2014 11:24:51 -0600 From: Eric Blake MIME-Version: 1.0 References: <66e17e32ccb10ca0ae262103fcf170b84511c3f8.1402299637.git.hutao@cn.fujitsu.com> In-Reply-To: <66e17e32ccb10ca0ae262103fcf170b84511c3f8.1402299637.git.hutao@cn.fujitsu.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QgjbJr3WgkTkOCFh8rkNihovMFmd8Na2p" 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: Hu Tao , qemu-devel@nongnu.org Cc: Yasunori Goto , Igor Mammedov , "Michael S. Tsirkin" , Eduardo Habkost , Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QgjbJr3WgkTkOCFh8rkNihovMFmd8Na2p Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/09/2014 04:25 AM, Hu Tao wrote: > Add qmp command query-memdev to query for information > of memory devices >=20 > Signed-off-by: Hu Tao > --- > numa.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++ > qapi-schema.json | 34 ++++++++++++++++++++++++++ > qmp-commands.hx | 32 +++++++++++++++++++++++++ > 3 files changed, 138 insertions(+) >=20 > + > +## > +# @Memdev: > +# > +# Information of memory device > +# > +# @size: memory device size > +# > +# @host-nodes: host nodes for its memory policy > +# > +# @policy: memory policy of memory device > +# You documented three parameters... > +# Since: 2.1 > +## > + > +{ 'type': 'Memdev', > + 'data': { > + 'size': 'size', > + 'merge': 'bool', > + 'dump': 'bool', > + 'prealloc': 'bool', > + 'host-nodes': ['uint16'], > + 'policy': 'HostMemPolicy' }} =2E..but implemented six, all listed as mandatory,... > +Show memory devices information. > + > + > +Example (1): > + > +-> { "execute": "query-memdev" } > +<- { "return": [ > + { > + "size": 536870912, > + "host-nodes": [0, 1], > + "policy": "bind" > + }, =2E..and then only demonstrate 3 in the example. Something's not quite r= ight. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --QgjbJr3WgkTkOCFh8rkNihovMFmd8Na2p Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTle3jAAoJEKeha0olJ0NqWqEH/icBT3Yq1q/Wkw0thMHujDTF UVgb+XsLZTRPzh4wLQwEZSNSnYlH8Nvyz0tdJup4rqTRCqmDgo/vXFcZpLRiI47q 21HuQp3bVmACyLkFr5h9ehoE+6Gc387eUvMImtNmXeHwsidkhlHC99EtqVyOBXW0 EnFJocN/lYDGtT7KpSLgMK/wKuO+v0vC+80ZYenGqWmDqBSEhMX3jdVhElMNVAlE YHBQnUNxUEgMPw4g3qvNP8nfATrhfy/MjGx22pGOgFpUlIM+4xL8DMYnQ1O/Pezo Qe0trTjBMZ7vucVKIyEhurS7WmO5MIZtlo7Ji0PrcemYKMGlwfNGmJKBooGMbwg= =/EA9 -----END PGP SIGNATURE----- --QgjbJr3WgkTkOCFh8rkNihovMFmd8Na2p--