• J
    qemu: Pass qemuCaps to qemuMigrationCookieXMLParse · bf15b145
    Jiri Denemark 提交于
    Since qemuDomainDefPostParse callback requires qemuCaps, we need to make
    sure it gets the capabilities stored in the domain's private data if the
    domain is running. Passing NULL may cause QEMU capabilities probing to
    be triggered in case QEMU binary changed in the meantime. When this
    happens while a running domain object is locked, QMP event delivered to
    the domain before QEMU capabilities probing finishes will deadlock the
    event loop.
    
    This patch fixes all paths leading to qemuMigrationCookieXMLParse.
    Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
    Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
    bf15b145
qemu_migration_cookie.c 48.3 KB