]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce qemuDomainSecretHostdevPrepare and Destroy
authorJohn Ferlan <jferlan@redhat.com>
Wed, 6 Apr 2016 14:41:33 +0000 (10:41 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 2 May 2016 10:10:19 +0000 (06:10 -0400)
commitd081665045d6fd26c5909f85112e20a5447e46f3
tree0ec42cf144ef40ad4b0e8924c04c090bed340db7
parent27726d8c214b69d4d55ff81c0392438c0a4cb2df
qemu: Introduce qemuDomainSecretHostdevPrepare and Destroy

Similar to the qemuDomainSecretDiskPrepare, generate the secret
for the Hostdev's prior to call qemuProcessLaunch which calls
qemuBuildCommandLine. Additionally, since the secret is not longer
added as part of building the command, the hotplug code will need
to make the call to add the secret in the hostdevPriv.

Since this then is the last requirement to pass a virConnectPtr
to qemuBuildCommandLine, we now can remove that as part of these
changes. That removal has cascading effects through various callers.

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