• E
    qemu: check for vm after starting a job · 054d43f5
    Eric Blake 提交于
    https://bugzilla.redhat.com/show_bug.cgi?id=638285 - when migrating
    a guest, it was very easy to provoke a race where an application
    could query block information on a VM that had just been migrated
    away.  Any time qemu code obtains a job lock, it must also check
    that the VM was not taken down in the time where it was waiting
    for the lock.
    
    * src/qemu/qemu_driver.c (qemudDomainSetMemory)
    (qemudDomainGetInfo, qemuDomainGetBlockInfo): Check that vm still
    exists after obtaining job lock, before starting monitor action.
    054d43f5
qemu_driver.c 411.1 KB