]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce qemuDomainPrepareDiskSource
authorJohn Ferlan <jferlan@redhat.com>
Wed, 30 Aug 2017 19:29:59 +0000 (15:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Sep 2017 13:45:14 +0000 (09:45 -0400)
commit5c09486c1ea65bc956c651d8a75d4d7fc8abece6
tree81fc6b871c7b703baa95c9f5c85c7c53ccbea01d
parentf170548502d434f5c466dd368efbf1e237693ca3
qemu: Introduce qemuDomainPrepareDiskSource

Introduce a function to setup any TLS needs for a disk source.

If there's a configuration or other error setting up the disk source
for TLS, then cause the domain startup to fail.

For VxHS, follow the chardevTLS model where if the src->haveTLS hasn't
been configured, then take the system/global cfg->haveTLS setting for
the storage source *and* mark that we've done so via the tlsFromConfig
setting in storage source.

Next, if we are using TLS, then generate an alias into a virStorageSource
'tlsAlias' field that will be used to create the TLS object and added to
the disk object in order to link the two together for QEMU.

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