726072f qemu: Report better error when memory device source has wrong NUMA node

1 file Authored by Luyao Huang 9 years ago, Committed by Peter Krempa 9 years ago,
    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>
    
        
file modified
+2 -0