diff --git a/libvirt.spec b/libvirt.spec index 998fa391a58005a347dfff34ed025d2a0f3b5b8d..41875a1114056aada1f3f36520d4799d759e32d4 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -101,7 +101,7 @@ Summary: Library providing a simple virtualization API Name: libvirt Version: 6.2.0 -Release: 57 +Release: 58 License: LGPLv2+ URL: https://libvirt.org/ @@ -484,6 +484,7 @@ Patch0371: cpu_topo-support-for-cpu_topo-clusters-in-conf.patch Patch0372: cpu_topo-support-for-specifying-clusters-in-qemu-com.patch Patch0373: cpu_topo-support-for-reporting-cluster_id-in-NUMA-to.patch Patch0374: cpu_topo-fix-detection-of-vCPU-pids-when-multiple-cl.patch +Patch0375: qemu-command-Use-correct-tpm-device-for-all-non-x86.patch Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} @@ -2220,6 +2221,9 @@ exit 0 %changelog +* Tue Aug 1 2023 lixianglai - 6.2.0-58 +- Synchronize upstream patches "Use correct tpm device for all non-x86" + * Mon May 22 2023 zhangxinhao - 6.2.0-57 - cpu_topo: support for cpu_topo "clusters” in conf - cpu_topo: support for specifying "clusters" in qemu comand diff --git a/qemu-command-Use-correct-tpm-device-for-all-non-x86.patch b/qemu-command-Use-correct-tpm-device-for-all-non-x86.patch new file mode 100644 index 0000000000000000000000000000000000000000..df4bd8b49ffe3efefcde69d41cedb247cdfbb170 --- /dev/null +++ b/qemu-command-Use-correct-tpm-device-for-all-non-x86.patch @@ -0,0 +1,32 @@ +From 4127f2c1599683af1de75574065f1942eea9ad88 Mon Sep 17 00:00:00 2001 +From: Cole Robinson +Date: Sat, 18 Jun 2022 12:46:03 -0400 +Subject: [PATCH] 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 +Signed-off-by: Cole Robinson +--- + src/qemu/qemu_command.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c +index dc7fb871e7..832c17b602 100644 +--- a/src/qemu/qemu_command.c ++++ b/src/qemu/qemu_command.c +@@ -9311,7 +9311,7 @@ qemuBuildTPMDevStr(const virDomainDef *def, + virDomainTPMDef *tpm = def->tpm; + const char *model = virDomainTPMModelTypeToString(tpm->model); + +- 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"; + + virBufferAsprintf(&buf, "%s,tpmdev=tpm-%s,id=%s", +-- +2.27.0 +