[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v18 12/14] qapi: add HostMemPolicy enum type
From: |
Hu Tao |
Subject: |
[Qemu-devel] [PATCH v18 12/14] qapi: add HostMemPolicy enum type |
Date: |
Wed, 19 Feb 2014 15:54:03 +0800 |
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
+#
+# @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' ] }
--
1.8.5.2.229.g4448466
[Qemu-devel] [PATCH v18 12/14] qapi: add HostMemPolicy enum type,
Hu Tao <=