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
+# of host nodes specified
+#
+# Since 2.0
+##
+{ 'enum': 'HostMemPolicy',
+ 'data': [ 'default', 'preferred', 'membind', 'interleave' ] }