• P
    qemu: capabilities: Don't partially reprope caps on process reconnect · 2f469c06
    Peter Krempa 提交于
    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.
    
    (cherry picked from commit b87a1134)
    2f469c06
qemu_capabilities.c 134.0 KB