]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Report better error when memory device source has wrong NUMA node
authorLuyao Huang <lhuang@redhat.com>
Wed, 25 Mar 2015 06:34:04 +0000 (14:34 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Mar 2015 11:24:40 +0000 (12:24 +0100)
commit726072f0d23f842a60399fcccbd76240d8f22da4
treec21f0ce9d7cd820e31679c0b36e42bfe366ab8fb
parent8ad871f39e108be97c2b0e323a8de8df7d4e9240
qemu: Report better error when memory device source has wrong NUMA node

When starting a VM with hotpluggable memory devices the user may specify
an invalid source NUMA node. Libvirt would pass through the error from
qemu:

 # virsh start test3
 error: Failed to start domain test3
 error: internal error: process exited while connecting to monitor:
 2015-03-25T01:12:17.205913Z qemu-kvm: -object memory-backend-ram,id=memdimm0
 ,size=536870912,host-nodes=1-3,policy=bind: cannot bind memory to host NUMA nodes:
 Invalid argument

This patch adds a check that allows to report better error:

 # virsh start test3
 error: Failed to start domain test3
 error: configuration unsupported: NUMA node 1 is unavailable

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/qemu/qemu_command.c