qemu: Report better error when memory device source has wrong NUMA node
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 <23d9981432efa88691fd2a71f5525bc2174f7664@redhat.com>

andreabolognani/libvirt,datto/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,taget/libvirt,jardasgit/libvirt,datto/libvirt,crobinso/libvirt,nertpinx/libvirt,rlaager/libvirt,eskultety/libvirt,eskultety/libvirt,crobinso/libvirt,rlaager/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,rlaager/libvirt,zippy2/libvirt,jfehlig/libvirt,rlaager/libvirt,fabianfreyer/libvirt,crobinso/libvirt,olafhering/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,zippy2/libvirt,andreabolognani/libvirt,rlaager/libvirt,jardasgit/libvirt,libvirt/libvirt,jardasgit/libvirt,datto/libvirt,eskultety/libvirt,agx/libvirt,VenkatDatta/libvirt,eskultety/libvirt,olafhering/libvirt,zippy2/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,agx/libvirt,andreabolognani/libvirt,taget/libvirt,eskultety/libvirt,taget/libvirt,jfehlig/libvirt,libvirt/libvirt,agx/libvirt,zippy2/libvirt,taget/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,VenkatDatta/libvirt,datto/libvirt,taget/libvirt,agx/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,datto/libvirt,fabianfreyer/libvirt,crobinso/libvirt,agx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt