pc-dimm: validate node property
commitcfe0ffd0272f1a6d34d27ac1a7072d1c42d33ad3
authorHu Tao <hutao@cn.fujitsu.com>
Mon, 4 Aug 2014 08:16:08 +0000 (4 16:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 14 Aug 2014 11:20:59 +0000 (14 13:20 +0200)
treee35f66cd666f7a96f07367a106a3f36d84843261
parent41d2f71376fe401a1fdb7deda023769207511790
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>
hw/mem/pc-dimm.c