• J
    migrate: v2: use VIR_DOMAIN_XML_MIGRATABLE when available · b6ab7a06
    Ján Tomko 提交于
    In v2 migration protocol, XML is obtained by calling domainGetXMLDesc.
    This includes the default USB controller in XML, which breaks migration
    to older libvirt (before 0.9.2).
    
    Commit 409b5f54
        qemu: Emit compatible XML when migrating a domain
    only fixed this for v3 migration.
    
    This patch uses the new VIR_DOMAIN_XML_MIGRATABLE flag (detected by
    VIR_DRV_FEATURE_XML_MIGRATABLE) to obtain XML without the default controller,
    enabling backward v2 migration.
    b6ab7a06
libvirt.c 595.8 KB