OSDN Git Service

NUMA: check if the total numa memory size is equal to ram_size
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Wed, 14 May 2014 09:43:06 +0000 (17:43 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:18 +0000 (18:44 +0300)
commit2b631ec2557eddfe92f1ef80d7fcaedd5db64e28
tree31deda069f9f2684d0ab04a55bda23c641a821d3
parent96d0e26c238e8df5d659a9b89f323f2524ec0b74
NUMA: check if the total numa memory size is equal to ram_size

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 <gaowanlong@cn.fujitsu.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
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: error message reworded
numa.c