From: Wanlong Gao <gaowanl...@cn.fujitsu.com> This new enum type will be used to set host memory policy of backend host memory.
Signed-off-by: Wanlong Gao <gaowanl...@cn.fujitsu.com> Signed-off-by: Hu Tao <hu...@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' ] } -- 1.8.5.2.229.g4448466