On 10/19/21 3:43 PM, Stefan Berger wrote:
> Using swtpm v0.7.0 we can run swtpm_setup to create default config files
> for swtpm_setup and swtpm-localca in session mode. Now a user can start
> a VM with an attached TPM without having to run this program on the
> command line before. This program needs to run once.
> 
> This patch addresses the issue raised in
> https://bugzilla.redhat.com/show_bug.cgi?id=2010649
> 
> Signed-off-by: Stefan Berger <stef...@linux.ibm.com>
> 
> ---
> v5:
>   - Address Daniel's comments on v4
>   - Pass swtpm_setup to function since it's already been looked up
> 
> v4:
>   - Append stderr output to virReportError if swtpm_setup fails
> 
> v3:
>   - Removed logfile parameter
> 
> v2:
>   - fixed return code if swtpm_setup doesn't support the option
> ---
>  src/qemu/qemu_tpm.c | 40 ++++++++++++++++++++++++++++++++++++++++
>  src/util/virtpm.c   |  1 +
>  src/util/virtpm.h   |  1 +
>  3 files changed, 42 insertions(+)

Pushed now.

Michal

Reply via email to