mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemu: command: Use correct tpm device for all non-x86
The qemu `tpm-tis` device is an ISA device, so only really applicable to x86 archs. For all non-x86 archs we should use `tpm-tis-device` This fixes tpm-tis usage on armv7l and riscv Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
5aec476e2e
commit
b233bf89dc
@ -9731,7 +9731,7 @@ qemuBuildTPMDevCmd(virCommand *cmd,
|
||||
const char *model = virDomainTPMModelTypeToString(tpm->model);
|
||||
g_autofree char *tpmdev = g_strdup_printf("tpm-%s", tpm->info.alias);
|
||||
|
||||
if (tpm->model == VIR_DOMAIN_TPM_MODEL_TIS && def->os.arch == VIR_ARCH_AARCH64)
|
||||
if (tpm->model == VIR_DOMAIN_TPM_MODEL_TIS && !ARCH_IS_X86(def->os.arch))
|
||||
model = "tpm-tis-device";
|
||||
|
||||
if (virJSONValueObjectAdd(&props,
|
||||
|
Loading…
x
Reference in New Issue
Block a user