Re: [libvirt PATCH 3/5] qemu: Default to TPM 2.0 for ARM virt guests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That works for me. Thanks.

Tested-by: liuyd.fnst@xxxxxxxxxxx


On 6/25/21 10:27 PM, Andrea Bolognani wrote:
> The TPM 2.0 specification predates ARM virtualization, and so
> implementing TPM 1.2 support on ARM was not considered a useful
> endeavor.
>
> This is technically a breaking change, but TPM support on ARM was
> only introduced fairly recently (libvirt 7.1.0) and the previous
> default resulted in non working TPM devices; anyone who has a
> working configuration is not going to be affected.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1970310
>
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
> ---
>   src/qemu/qemu_domain.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
> index fc60e15eea..8488f58e09 100644
> --- a/src/qemu/qemu_domain.c
> +++ b/src/qemu/qemu_domain.c
> @@ -4445,7 +4445,8 @@ qemuDomainDefTPMsPostParse(virDomainDef *def)
>           /* TPM 1.2 and 2 are not compatible, so we choose a specific version here */
>           if (tpm->version == VIR_DOMAIN_TPM_VERSION_DEFAULT) {
>               if (tpm->model == VIR_DOMAIN_TPM_MODEL_SPAPR ||
> -                tpm->model == VIR_DOMAIN_TPM_MODEL_CRB)
> +                tpm->model == VIR_DOMAIN_TPM_MODEL_CRB ||
> +                qemuDomainIsARMVirt(def))
>                   tpm->version = VIR_DOMAIN_TPM_VERSION_2_0;
>               else
>                   tpm->version = VIR_DOMAIN_TPM_VERSION_1_2;

-- 
Best Regards.
Yiding Liu




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux