From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG5FK-0004s5-49 for qemu-devel@nongnu.org; Wed, 19 Feb 2014 06:23:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WG5FF-0005M9-IQ for qemu-devel@nongnu.org; Wed, 19 Feb 2014 06:23:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG5FF-0005Lt-AN for qemu-devel@nongnu.org; Wed, 19 Feb 2014 06:23:17 -0500 Date: Wed, 19 Feb 2014 12:23:01 +0100 From: Igor Mammedov Message-ID: <20140219122301.736f0e52@nial.usersys.redhat.com> In-Reply-To: <0633bfd4ae35cd36ff67986bd4dbfec25603fb3e.1392794450.git.hutao@cn.fujitsu.com> References: <0633bfd4ae35cd36ff67986bd4dbfec25603fb3e.1392794450.git.hutao@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 Cc: pbonzini@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org, Wanlong Gao On Wed, 19 Feb 2014 15:54:03 +0800 Hu Tao wrote: > From: Wanlong Gao > > This new enum type will be used to set host memory policy of > backend host memory. perhaps squashing it into the next path would be better. > > 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 > +# > +# @membind: a strict policy that restricts memory allocation to the > +# host nodes specified > +# > +# @interleave: the page allocations is interleaved across the set > +# of host nodes specified > +# > +# Since 2.0 > +## > +{ 'enum': 'HostMemPolicy', > + 'data': [ 'default', 'preferred', 'membind', 'interleave' ] }