]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: don't pass virConnectPtr around for secrets
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Feb 2018 16:14:41 +0000 (16:14 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 19 Feb 2018 11:11:47 +0000 (11:11 +0000)
commit6ea0ae96192860abbaa671ce1db878d58e69bbea
tree9a61db60923e49df2c99c28cdca30bc7a57b88a1
parent2d43f0a2dcfd89bc52b15b90e0d58fc318011640
qemu: don't pass virConnectPtr around for secrets

During domain startup there are many places where we need to acquire
secrets. Currently code passes around a virConnectPtr, except in the
places where we pass in NULL. So there are a few codepaths where ability
to start guests using secrets will fail. Change to acquire a handle to
the secret driver when needed.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
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_migration.c
src/qemu/qemu_process.c
tests/qemuhotplugtest.c