qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v18 12/14] qapi: add HostMemPolicy enum type


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v18 12/14] qapi: add HostMemPolicy enum type
Date: Wed, 19 Feb 2014 10:08:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Il 19/02/2014 08:54, Hu Tao ha scritto:
From: Wanlong Gao <address@hidden>

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

Signed-off-by: Wanlong Gao <address@hidden>
Signed-off-by: Hu Tao <address@hidden>
---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]