]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add secret object hotplug for TCP chardev TLS
authorJohn Ferlan <jferlan@redhat.com>
Fri, 17 Jun 2016 13:44:30 +0000 (09:44 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 26 Oct 2016 11:27:48 +0000 (07:27 -0400)
commit8550e8585eef1ed7f5850a698d680e20b5cbcdff
treef1266f306989364eb4c6fa16c13e0ab333a592e7
parentdaf5c651f020b72f5e8e3624a8141f581ab7d81a
qemu: Add secret object hotplug for TCP chardev TLS

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

Complete the implementation of support for TLS encryption on
chardev TCP transports by adding the hotplug ability of a secret
to generate the passwordid for the TLS object for chrdev, RNG,
and redirdev.

Fix up the order of object removal on failure to be the inverse
of the attempted attach (for redirdev, chr, rng) - for each the
tls object was being removed before the chardev backend.

Likewise, add the ability to hot unplug that secret object as well
and be sure the order of unplug matches that inverse order of plug.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_hotplug.h
tests/qemuhotplugtest.c