[libvirt] [PATCH v5 03/20] conf: Extend TPM XML parser with encryption support

Daniel P. Berrangé berrange at redhat.com
Wed Jul 24 16:50:01 UTC 2019


On Fri, Jul 12, 2019 at 12:23:37PM -0400, Stefan Berger wrote:
> Extend the TPM device XML parser and XML generator with emulator
> state encryption support.
> 
> Signed-off-by: Stefan Berger <stefanb at linux.ibm.com>
> ---
>  src/conf/domain_conf.c | 31 ++++++++++++++++++++++++++++++-
>  src/conf/domain_conf.h |  2 ++
>  2 files changed, 32 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 3323c9a5b1..7b0de160a6 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -13048,6 +13048,14 @@ virDomainSmartcardDefParseXML(virDomainXMLOptionPtr xmlopt,
>   * <tpm model='tpm-tis'>
>   *   <backend type='emulator' version='2'/>
>   * </tpm>
> + *
> + * Emulator state encryption is supported with the following:
> + *
> + * <tpm model='tpm-tis'>
> + *   <backend type='emulator' version='2'>
> + *     <encryption uuid='32ee7e76-2178-47a1-ab7b-269e6e348015'/>

Nitpick, you actally parse the attribute called 'secret'  instead
of 'uuid', which is good.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list