]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Set up the migration TLS objects for source
authorJohn Ferlan <jferlan@redhat.com>
Thu, 16 Feb 2017 20:56:10 +0000 (15:56 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 25 Mar 2017 12:19:49 +0000 (08:19 -0400)
commita69e266d5eef60e0d6a85cc0734887f52ccd8992
treee2d8e019c93ffc35801b19c08626938484a71cb8
parent1a6b6d9a5695890c24e56327df7d7c0f0acd1267
qemu: Set up the migration TLS objects for source

https://bugzilla.redhat.com/show_bug.cgi?id=1300769

If the migration flags indicate this migration will be using TLS,
then while we have connection in the Begin phase check and setup the
TLS environment that will be used by virMigrationRun during the Perform
phase for the source to configure TLS.

Processing adds an "-object tls-creds-x509,endpoint=client,..." and
possibly an "-object secret,..." to handle the passphrase response.

Then it sets the 'tls-creds' and possibly 'tls-hostname' migration
parameters.

The qemuMigrateCancel will clean up and reset the environment as it
was originally found.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_migration.c