]> git.ipfire.org Git - thirdparty/qemu.git/commit - qemu-options.hx
numa: Allow setting NUMA distance for different NUMA nodes
authorHe Chen <he.chen@linux.intel.com>
Thu, 27 Apr 2017 02:35:58 +0000 (10:35 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 11 May 2017 19:08:37 +0000 (16:08 -0300)
commit0f203430dd88cc6270310956ace58aca639edb59
treeb188d4e290c4e52f38db97ffc00e36f1c898435d
parent4ed3d478c63dc65a02eba774c35116618ea5ff10
numa: Allow setting NUMA distance for different NUMA nodes

This patch is going to add SLIT table support in QEMU, and provides
additional option `dist` for command `-numa` to allow user set vNUMA
distance by QEMU command.

With this patch, when a user wants to create a guest that contains
several vNUMA nodes and also wants to set distance among those nodes,
the QEMU command would like:

```
-numa node,nodeid=0,cpus=0 \
-numa node,nodeid=1,cpus=1 \
-numa node,nodeid=2,cpus=2 \
-numa node,nodeid=3,cpus=3 \
-numa dist,src=0,dst=1,val=21 \
-numa dist,src=0,dst=2,val=31 \
-numa dist,src=0,dst=3,val=41 \
-numa dist,src=1,dst=2,val=21 \
-numa dist,src=1,dst=3,val=31 \
-numa dist,src=2,dst=3,val=21 \
```

Signed-off-by: He Chen <he.chen@linux.intel.com>
Message-Id: <1493260558-20728-1-git-send-email-he.chen@linux.intel.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/acpi/aml-build.c
hw/i386/acpi-build.c
include/hw/acpi/aml-build.h
include/sysemu/numa.h
include/sysemu/sysemu.h
numa.c
qapi-schema.json
qemu-options.hx