diff options
| author | Hu Tao <hutao@cn.fujitsu.com> | 2014-06-10 19:15:25 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 18:44:21 +0300 |
| commit | 4cf1b76bf1e2cbb91b1123d47505a6586195800c (patch) | |
| tree | 820345eede4c0d20ec8d9dae33edb1b3dc284cbf /qapi | |
| parent | dbcb8981183592be129b2e624b7bcd4245e75fbc (diff) | |
| download | focaccia-qemu-4cf1b76bf1e2cbb91b1123d47505a6586195800c.tar.gz focaccia-qemu-4cf1b76bf1e2cbb91b1123d47505a6586195800c.zip | |
hostmem: add properties for NUMA memory policy
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> [Raise errors on setting properties if !CONFIG_NUMA. Add BUILD_BUG_ON checks. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
| -rw-r--r-- | qapi-schema.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index e05f8ba4f9..10a324a79a 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3134,3 +3134,23 @@ '*cpus': ['uint16'], '*mem': 'size', '*memdev': 'str' }} + +## +# @HostMemPolicy +# +# Host memory policy types +# +# @default: restore default policy, remove any nondefault policy +# +# @preferred: set the preferred host nodes for allocation +# +# @bind: a strict policy that restricts memory allocation to the +# host nodes specified +# +# @interleave: memory allocations are interleaved across the set +# of host nodes specified +# +# Since 2.1 +## +{ 'enum': 'HostMemPolicy', + 'data': [ 'default', 'preferred', 'bind', 'interleave' ] } |