]> git.ipfire.org Git - thirdparty/qemu.git/commit
pc-dimm: validate node property
authorHu Tao <hutao@cn.fujitsu.com>
Mon, 4 Aug 2014 08:16:08 +0000 (16:16 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 8 Sep 2014 16:23:04 +0000 (11:23 -0500)
commit044af98ea8d5c2e36a18a123659e1f032a8cb75f
treed8c9cee11a2a027c532da321104e6f7406ccf131
parent7c68c5402a1e1b91566694af0e33ee333d07e767
pc-dimm: validate node property

If user specifies a node number that exceeds the available numa nodes in
emulated system for pc-dimm device, the device will report an invalid _PXM
to OSPM. Fix this by checking the node property value.

Cc: qemu-stable@nongnu.org
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit cfe0ffd0272f1a6d34d27ac1a7072d1c42d33ad3)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/mem/pc-dimm.c