diff options
| author | Paolo Bonzini | 2014-05-14 11:43:17 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 17:44:19 +0200 |
| commit | 7febe36f9adbb34756a6a6765a36ea49b6e502ac (patch) | |
| tree | 34a47adbcfd145e26558aff8f38168c6cb057e67 /include | |
| parent | qom: introduce object_property_get_enum and object_property_get_uint16List (diff) | |
| download | qemu-7febe36f9adbb34756a6a6765a36ea49b6e502ac.tar.gz qemu-7febe36f9adbb34756a6a6765a36ea49b6e502ac.tar.xz qemu-7febe36f9adbb34756a6a6765a36ea49b6e502ac.zip | |
numa: add -numa node,memdev= option
This option provides the infrastructure for binding guest NUMA nodes
to host NUMA nodes. For example:
-object memory-ram,size=1024M,policy=bind,host-nodes=0,id=ram-node0 \
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
-object memory-ram,size=1024M,policy=interleave,host-nodes=1-3,id=ram-node1 \
-numa node,nodeid=1,cpus=1,memdev=ram-node1
The option replaces "-numa node,mem=".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
MST: conflict resolution
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/sysemu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index c4e1bbd9fd..277230db49 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -149,6 +149,7 @@ extern int nb_numa_nodes; typedef struct node_info { uint64_t node_mem; DECLARE_BITMAP(node_cpu, MAX_CPUMASK_BITS); + struct HostMemoryBackend *node_memdev; } NodeInfo; extern NodeInfo numa_info[MAX_NODES]; void set_numa_nodes(void); |
