b87a113 qemu: capabilities: Don't partially reprope caps on process reconnect

Authored and Committed by Peter Krempa 7 years ago
    qemu: capabilities: Don't partially reprope caps on process reconnect
    
    Thanks to the complex capability caching code virQEMUCapsProbeQMP was
    never called when we were starting a new qemu VM. On the other hand,
    when we are reconnecting to the qemu process we reload the capability
    list from the status XML file. This means that the flag preventing the
    function being called was not set and thus we partially reprobed some of
    the capabilities.
    
    The recent addition of CPU hotplug clears the
    QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS if the machine does not support it.
    The partial re-probe on reconnect results into attempting to call the
    unsupported command and then killing the VM.
    
    Remove the partial reprobe and depend on the stored capabilities. If it
    will be necessary to reprobe the capabilities in the future, we should
    do a full reprobe rather than this partial one.
    
        
file modified
+0 -17
file modified
+0 -3
file modified
+0 -4