From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzQxy-0004up-TI for qemu-devel@nongnu.org; Wed, 17 Jul 2013 08:36:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzQxv-0002wB-OR for qemu-devel@nongnu.org; Wed, 17 Jul 2013 08:36:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzQxv-0002vy-FI for qemu-devel@nongnu.org; Wed, 17 Jul 2013 08:36:19 -0400 Message-ID: <51E68FBB.7080401@redhat.com> Date: Wed, 17 Jul 2013 06:36:11 -0600 From: Eric Blake MIME-Version: 1.0 References: <1374053373-30499-1-git-send-email-gaowanlong@cn.fujitsu.com> <1374053373-30499-10-git-send-email-gaowanlong@cn.fujitsu.com> In-Reply-To: <1374053373-30499-10-git-send-email-gaowanlong@cn.fujitsu.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2VSMCHQKAXIFEBWGMABPN" Subject: Re: [Qemu-devel] [PATCH V5 09/12] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wanlong Gao Cc: aliguori@us.ibm.com, ehabkost@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, bsd@redhat.com, y-goto@jp.fujitsu.com, pbonzini@redhat.com, peter.huangpeng@huawei.com, lersek@redhat.com, afaerber@suse.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2VSMCHQKAXIFEBWGMABPN Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/17/2013 03:29 AM, Wanlong Gao wrote: > This QMP command allows user set guest node's memory policy > through the QMP protocol. The qmp-shell command is like: > set-mem-policy nodeid=3D0 policy=3Dmembind host-nodes=3D0-1 >=20 > Signed-off-by: Wanlong Gao > --- > numa.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++= +++++++ > qapi-schema.json | 19 +++++++++++++++++++ > qmp-commands.hx | 35 +++++++++++++++++++++++++++++++++++ > 3 files changed, 109 insertions(+) >=20 > +++ b/qapi-schema.json > @@ -3729,3 +3729,22 @@ > '*size': 'size', > '*policy': 'str', > '*host-nodes': 'str' }} > + > +## > +# @set-mem-policy: > +# > +# Set the host memory binding policy for guest NUMA node. > +# > +# @nodeid: The node ID of guest NUMA node to set memory policy to. > +# > +# @policy: #optional The memory policy to be set (default 'default'). Needs to be an enum type, not an open-coded 'str'. Probably the same enum type as you add for patch 6/12. > +# > +# @host-nodes: #optional The host nodes range for memory policy. Again, how is this string interpreted; and should it be an array? > +# > +# Returns: Nothing on success > +# > +# Since: 1.6 > +## > +{ 'command': 'set-mem-policy', > + 'data': {'nodeid': 'int', '*policy': 'str', > + '*host-nodes': 'str'} } --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2VSMCHQKAXIFEBWGMABPN 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.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJR5o+7AAoJEKeha0olJ0NqpVAH/3u/f7U8jHY3T3jyrliwq+vt EhCA3tEOpxpF9kfdPYszbOZq1LLMjr2MDW7uxcV6hrZjfc2KV7WkjeW9aw/k+JQf tvcTvH9GShFVfqvjmrL7hN/khKHH4NWIT4XO74Tq4+g1pHrUPvI4kco4pprTLyeP kRt8AXgznB3WBv1yorQN+cTPwZwmMQYv9QhKWcx+2XEydQAd3AkWFlTCUmOmGJNt w00xDMuAAD9o94qAGTDILLIRugJEEcp3iFNP2ViVFwLgksv/A8H54dqLJVBUYw4r wTDDkFkuz7dnU2ZYz3kb1HjGjDy5aGsL4XyBD8w+DxQAbLg5/dlia78ZoVX2T4o= =QAED -----END PGP SIGNATURE----- ------enig2VSMCHQKAXIFEBWGMABPN--