From 4571978c8542a1f996af8a4913c787eecfb0b15d Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 16 Sep 2026 18:30:25 +0000 Subject: T9014: use tpm-tis-device for arm64 QEMU smoketests The ISA "tpm-tis" device only exists on x86 machines. The arm64 "virt" machine exposes the TPM via MMIO and a device-tree node, which QEMU models as "tpm-tis-device" instead. --- scripts/check-qemu-install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 58c45f39..cbb2c964 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -322,9 +322,13 @@ def get_qemu_cmd(name, enable_uefi, disk_img, raid=None, iso_img=None, tpm=False f' -device scsi-hd,bus=scsi1.0,drive=drive-hd2,id=hd2,bootindex=2' if tpm: + # The ISA "tpm-tis" device only exists on x86 machines - the arm64 + # "virt" machine exposes the TPM via MMIO and a device-tree node, + # which QEMU models as "tpm-tis-device" instead. + tpm_device = 'tpm-tis-device' if architecture == 'arm64' else 'tpm-tis' cmd += f' -chardev socket,id=chrtpm,path={tpm_sock}' \ ' -tpmdev emulator,id=tpm0,chardev=chrtpm' \ - ' -device tpm-tis,tpmdev=tpm0' + f' -device {tpm_device},tpmdev=tpm0' return cmd -- cgit v1.2.3