From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG39H-0001LB-8T for qemu-devel@nongnu.org; Wed, 19 Feb 2014 04:09:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG39C-0004b4-8v for qemu-devel@nongnu.org; Wed, 19 Feb 2014 04:08:59 -0500 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:38339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG39C-0004ay-4r for qemu-devel@nongnu.org; Wed, 19 Feb 2014 04:08:54 -0500 Received: by mail-qc0-f178.google.com with SMTP id m20so110356qcx.9 for ; Wed, 19 Feb 2014 01:08:53 -0800 (PST) Sender: Paolo Bonzini Message-ID: <530474A2.8050209@redhat.com> Date: Wed, 19 Feb 2014 10:08:50 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <0633bfd4ae35cd36ff67986bd4dbfec25603fb3e.1392794450.git.hutao@cn.fujitsu.com> In-Reply-To: <0633bfd4ae35cd36ff67986bd4dbfec25603fb3e.1392794450.git.hutao@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v18 12/14] qapi: add HostMemPolicy enum type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hu Tao , qemu-devel@nongnu.org Cc: imammedo@redhat.com, lersek@redhat.com, Wanlong Gao Il 19/02/2014 08:54, Hu Tao ha scritto: > From: Wanlong Gao > > This new enum type will be used to set host memory policy of > backend host memory. > > Signed-off-by: Wanlong Gao > Signed-off-by: Hu Tao > --- > qapi-schema.json | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/qapi-schema.json b/qapi-schema.json > index 498ea9b..9d6370f 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -4454,3 +4454,23 @@ > '*cpus': ['uint16'], > '*memdev': 'str', > '*mem': 'str' }} > + > +## > +# @HostMemPolicy > +# > +# Host memory policy types > +# > +# @default: restore default policy, remove any nondefault policy > +# > +# @preferred: set the preferred host node for allocation host nodes > +# > +# @membind: a strict policy that restricts memory allocation to the > +# host nodes specified > +# > +# @interleave: the page allocations is interleaved across the set @interleave: memory allocations are interleaved across ... > +# of host nodes specified > +# > +# Since 2.0 > +## > +{ 'enum': 'HostMemPolicy', > + 'data': [ 'default', 'preferred', 'membind', 'interleave' ] } > Paolo