• F
    qemu: allow blkstat/blkinfo calls during migration · 18c2a592
    Federico Simoncelli 提交于
    Originally most of libvirt domain-specific calls were blocking
    during a migration.
    A new mechanism to allow specific calls (blkstat/blkinfo) to be
    executed in such condition has been implemented.
    In the long term it'd be desirable to get a more general
    solution to mark further APIs as migration safe, without needing
    special case code.
    
     * src/qemu/qemu_migration.c: add some additional job signal
       flags for doing blkstat/blkinfo during a migration
     * src/qemu/qemu_domain.c: add a condition variable that can be
       used to efficiently wait for the migration code to clear the
       signal flag
     * src/qemu/qemu_driver.c: execute blkstat/blkinfo using the
       job signal flags during migration
    18c2a592
qemu_driver.c 238.0 KB