diff options
| author | Eduardo Habkost | 2017-09-01 04:10:02 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2017-09-19 21:51:33 +0200 |
| commit | 4926403c250fc41dc2d27f1c77e200e7d3d239cd (patch) | |
| tree | 071db7a4d3386dad35ab48c5c7ee7ecca01f08bd /scripts/modules/module_block.py | |
| parent | NUMA: Replace MAX_NODES with nb_numa_nodes in for loop (diff) | |
| download | qemu-4926403c250fc41dc2d27f1c77e200e7d3d239cd.tar.gz qemu-4926403c250fc41dc2d27f1c77e200e7d3d239cd.tar.xz qemu-4926403c250fc41dc2d27f1c77e200e7d3d239cd.zip | |
hw/acpi-build: Fix SRAT memory building in case of node 0 without RAM
Currently, Using the fisrt node without memory on the machine makes
QEMU unhappy. With this example command line:
... \
-m 1024M,slots=4,maxmem=32G \
-numa node,nodeid=0 \
-numa node,mem=1024M,nodeid=1 \
-numa node,nodeid=2 \
-numa node,nodeid=3 \
Guest reports "No NUMA configuration found" and the NUMA topology is
wrong.
This is because when QEMU builds ACPI SRAT, it regards node 0 as the
default node to deal with the memory hole(640K-1M). this means the
node0 must have some memory(>1M), but, actually it can have no
memory.
Fix this problem by cut out the 640K hole in the same way the PCI
4G hole does.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Message-Id: <1504231805-30957-2-git-send-email-douly.fnst@cn.fujitsu.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions
