[libvirt] [PATCH v10 4/5] qemu: Introduce qemuDomainPrepareDiskSource

Peter Krempa pkrempa at redhat.com
Thu Sep 28 13:36:21 UTC 2017


On Wed, Sep 27, 2017 at 11:45:54 -0400, John Ferlan wrote:
> 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 at redhat.com>
> ---
>  src/qemu/qemu_domain.c    | 73 +++++++++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_domain.h    | 11 +++++++
>  src/qemu/qemu_process.c   |  4 +++
>  src/util/virstoragefile.c |  8 +++++-
>  src/util/virstoragefile.h |  7 +++++
>  5 files changed, 102 insertions(+), 1 deletion(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170928/3cb842e3/attachment-0001.sig>


More information about the libvir-list mailing list