diff --git a/fixup-compile-on-loongarch64-machine.patch b/fixup-compile-on-loongarch64-machine.patch new file mode 100644 index 0000000000000000000000000000000000000000..1dfe04895207aef9a2da3dc3fc3d9557b4e9814c --- /dev/null +++ b/fixup-compile-on-loongarch64-machine.patch @@ -0,0 +1,26 @@ +From c952962cda3daf05323b383485d834ffc8e16f4f Mon Sep 17 00:00:00 2001 +From: lixianglai +Date: Wed, 29 Mar 2023 02:48:04 -0400 +Subject: [PATCH] fixup compile on loongarch64 machine. + +Add function kvm_arch_accel_class_init definition on loongarch64 machine. + +Signed-off-by: lixianglai +--- + target/loongarch64/kvm.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/target/loongarch64/kvm.c b/target/loongarch64/kvm.c +index 2b0159bb32..21f6d5695f 100644 +--- a/target/loongarch64/kvm.c ++++ b/target/loongarch64/kvm.c +@@ -1364,3 +1364,6 @@ int kvm_arch_msi_data_to_gsi(uint32_t data) + { + abort(); + } ++void kvm_arch_accel_class_init(ObjectClass *oc) ++{ ++} +-- +2.27.0 + diff --git a/qemu.spec b/qemu.spec index 0745dfdb2f09ecc959873c86981f1093bfa26cd0..eeb18b2740f7e831711659ef38ed3f6008f2ae68 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1,6 +1,6 @@ Name: qemu Version: 6.2.0 -Release: 62 +Release: 63 Epoch: 10 Summary: QEMU is a generic and open source machine emulator and virtualizer License: GPLv2 and BSD and MIT and CC-BY-SA-4.0 @@ -468,6 +468,7 @@ Patch0456: block-backend-prevent-dangling-BDS-pointers-across-a.patch Patch0457: net-Fix-uninitialized-data-usage.patch Patch0458: net-eth-Don-t-consider-ESP-to-be-an-IPv6-option-head.patch Patch0459: hw-net-vmxnet3-Log-guest-triggerable-errors-using-LO.patch +Patch0460: fixup-compile-on-loongarch64-machine.patch BuildRequires: flex BuildRequires: gcc @@ -1022,6 +1023,9 @@ getent passwd qemu >/dev/null || \ %endif %changelog +* Thu Mar 30 2023 - 10:6.2.0-63 +- fixup compile error. Add function kvm_arch_accel_class_init definition on loongarch64 machine. + * Wed Mar 29 2023 - 10:6.2.0-62 - modify qemu.spec to add (riscv virt) machine mapping to testenv from v7.0.0