[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 01/16] fixup! NUMA: check if the total numa memor
From: |
Hu Tao |
Subject: |
[Qemu-devel] [PATCH v5 01/16] fixup! NUMA: check if the total numa memory size is equal to ram_size |
Date: |
Tue, 10 Jun 2014 19:15:14 +0800 |
From: Wanlong Gao <address@hidden>
If the total number of the assigned numa nodes memory is not
equal to the assigned ram size, it will write the wrong data
to ACPI table, then the guest will ignore the wrong ACPI table
and recognize all memory to one node. It's buggy, we should
check it to ensure that we write the right data to ACPI table.
Signed-off-by: Wanlong Gao <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Hu Tao <address@hidden>
Conflicts:
numa.c
---
numa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/numa.c b/numa.c
index 2c349ae..6ea267e 100644
--- a/numa.c
+++ b/numa.c
@@ -187,8 +187,8 @@ void set_numa_nodes(void)
numa_total += numa_info[i].node_mem;
}
if (numa_total != ram_size) {
- error_report("qemu: total memory size for NUMA nodes (%" PRIu64 ")"
- " should equal RAM size (" RAM_ADDR_FMT ")\n",
+ error_report("total memory for NUMA nodes (%" PRIu64 ")"
+ " should equal RAM size (" RAM_ADDR_FMT ")",
numa_total, ram_size);
exit(1);
}
--
1.9.3
- [Qemu-devel] [PATCH v5 00/16] NUMA series v5, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 01/16] fixup! NUMA: check if the total numa memory size is equal to ram_size,
Hu Tao <=
- [Qemu-devel] [PATCH v5 02/16] vl: redo -object parsing, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 03/16] fixup! qmp: improve error reporting for -object and object-add, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 04/16] pc: pass MachineState to pc_memory_init, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 05/16] backend:hostmem: replace hostmemory with host_memory, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 06/16] hostmem: separate allocation from UserCreatable complete method, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 07/16] fixup! numa: add -numa node, memdev= option, Hu Tao, 2014/06/10
- [Qemu-devel] [PATCH v5 08/16] hostmem: add file-based HostMemoryBackend, Hu Tao, 2014/06/10