• D
    Extend v3 migration protocol to allow app supplied XML for target · 7ad4b6b9
    Daniel P. Berrange 提交于
    This extends the v3 migration protocol such that the
    virDomainMigrateBegin3 and virDomainMigratePerform3
    methods accept an application supplied XML config for
    the target VM.
    
    If the 'xmlin' parameter is NULL, then Begin3 uses the
    current guest XML as normal. A driver implementing the
    Begin3 method should either reject all non-NULL 'xmlin'
    parameters, or strictly validate that the app supplied
    XML does not change guest ABI.
    
    The Perform3 method also needed the xmlin parameter to
    cope with the Peer2Peer migration sequence.
    
    NB it is not yet possible to use this capability since
    neither of the public virDomainMigrate/virDomainMigrateToURI
    methods have a way to pass in XML.
    
    * daemon/remote.c, src/remote/remote_driver.c,
      src/remote/remote_protocol.x, src/remote_protocol-structs:
      Add 'remote_string xmlin' parameter to begin3/perform3
      RPC messages
    * src/libvirt.c, src/driver.h, src/libvirt_internal.h: Add
      'const char *xmlin' parameter to Begin3/Perform3 methods
    * src/qemu/qemu_driver.c, src/qemu/qemu_migration.c,
      src/qemu/qemu_migration.h: Pass xmlin parameter around
      migration methods
    7ad4b6b9
libvirt_internal.h 7.4 KB