- target/loongarch: Fix qemu-system-loongarch64 assert - target/loongarch: Fix qemu-loongarch64 hang when executing 'll.d , , 0' - target/loongarch: Fix tlb huge page loading issue - target/loongarch/kvm: Add software breakpoint support - target/loongarch/kvm: sync kernel header files - hw/intc/loongarch_extioi: Add virt extension support - target/loongarch/kvm: Add pmu support - target/loongarch/kvm: Fix vm restore failed - target/loongarch/kvm: Add pv steal time support - target/loongarch/kvm: fpu save the vreg registers high Signed-off-by: Song Gao <gaosong@loongson.cn>
29 lines
918 B
Diff
29 lines
918 B
Diff
From 7cf9ed3844ed3340165121e5fd7dcb959ee80d15 Mon Sep 17 00:00:00 2001
|
|
From: Song Gao <gaosong@loongson.cn>
|
|
Date: Wed, 24 Apr 2024 14:18:46 +0800
|
|
Subject: [PATCH] target/loongarch/kvm: Fix vm restore failed
|
|
|
|
The vmstate_loongarch_cpu need kvm_state_counter.
|
|
|
|
Signed-off-by: Song Gao <gaosong@loongson.cn>
|
|
---
|
|
target/loongarch/machine.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c
|
|
index 1c4e01d076..4443caed2d 100644
|
|
--- a/target/loongarch/machine.c
|
|
+++ b/target/loongarch/machine.c
|
|
@@ -191,6 +191,8 @@ const VMStateDescription vmstate_loongarch_cpu = {
|
|
VMSTATE_STRUCT_ARRAY(env.tlb, LoongArchCPU, LOONGARCH_TLB_MAX,
|
|
0, vmstate_tlb, LoongArchTLB),
|
|
|
|
+ VMSTATE_UINT64(kvm_state_counter, LoongArchCPU),
|
|
+
|
|
VMSTATE_END_OF_LIST()
|
|
},
|
|
.subsections = (const VMStateDescription*[]) {
|
|
--
|
|
2.33.0
|
|
|