• J
    qemu: Set up the migration TLS objects for target · 1a6b6d9a
    John Ferlan 提交于
    If the migration flags indicate this migration will be using TLS,
    then set up the destination during the prepare phase once the target
    domain has been started to add the TLS objects to perform the migration.
    
    This will create at least an "-object tls-creds-x509,endpoint=server,..."
    for TLS credentials and potentially an "-object secret,..." to handle the
    passphrase response to access the TLS credentials. The alias/id used for
    the TLS objects will contain "libvirt_migrate".
    
    Once the objects are created, the code will set the "tls-creds" and
    "tls-hostname" migration parameters to signify usage of TLS.
    
    During the Finish phase we'll be sure to attempt to clear the
    migration parameters and delete those objects (whether or not they
    were created). We'll also perform the same reset during recovery
    if we've reached FINISH3.
    
    If the migration isn't using TLS, then be sure to check if the
    migration parameters exist and clear them if so.
    1a6b6d9a
qemu_process.c 209.0 KB