diff mbox

[v18,12/14] qapi: add HostMemPolicy enum type

Message ID 0633bfd4ae35cd36ff67986bd4dbfec25603fb3e.1392794450.git.hutao@cn.fujitsu.com
State New
Headers show

Commit Message

Hu Tao Feb. 19, 2014, 7:54 a.m. UTC
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>

This new enum type will be used to set host memory policy of
backend host memory.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
---
 qapi-schema.json | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Paolo Bonzini Feb. 19, 2014, 9:08 a.m. UTC | #1
Il 19/02/2014 08:54, Hu Tao ha scritto:
> From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
>
> This new enum type will be used to set host memory policy of
> backend host memory.
>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
> ---
>  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
Igor Mammedov Feb. 19, 2014, 11:23 a.m. UTC | #2
On Wed, 19 Feb 2014 15:54:03 +0800
Hu Tao <hutao@cn.fujitsu.com> wrote:

> From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> 
> 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 <gaowanlong@cn.fujitsu.com>
> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
> ---
>  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' ] }
diff mbox

Patch

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' ] }