- 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>
42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From b7e49ac3b4e7dbfc9ba4645a85962294883c251a Mon Sep 17 00:00:00 2001
|
|
From: Bibo Mao <maobibo@loongson.cn>
|
|
Date: Wed, 13 Mar 2024 10:04:33 +0800
|
|
Subject: [PATCH] target/loongarch/kvm: sync kernel header files
|
|
|
|
sync kernel header files.
|
|
|
|
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
|
|
---
|
|
linux-headers/asm-loongarch/kvm.h | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/linux-headers/asm-loongarch/kvm.h b/linux-headers/asm-loongarch/kvm.h
|
|
index 923d0bd382..4cec8c1601 100644
|
|
--- a/linux-headers/asm-loongarch/kvm.h
|
|
+++ b/linux-headers/asm-loongarch/kvm.h
|
|
@@ -15,10 +15,12 @@
|
|
*/
|
|
|
|
#define __KVM_HAVE_READONLY_MEM
|
|
+#define __KVM_HAVE_GUEST_DEBUG
|
|
|
|
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
|
|
#define KVM_DIRTY_LOG_PAGE_OFFSET 64
|
|
|
|
+#define KVM_GUESTDBG_USE_SW_BP 0x00010000
|
|
/*
|
|
* for KVM_GET_REGS and KVM_SET_REGS
|
|
*/
|
|
@@ -74,6 +76,8 @@ struct kvm_fpu {
|
|
|
|
#define KVM_REG_LOONGARCH_COUNTER (KVM_REG_LOONGARCH_KVM | KVM_REG_SIZE_U64 | 1)
|
|
#define KVM_REG_LOONGARCH_VCPU_RESET (KVM_REG_LOONGARCH_KVM | KVM_REG_SIZE_U64 | 2)
|
|
+/* Debugging: Special instruction for software breakpoint */
|
|
+#define KVM_REG_LOONGARCH_DEBUG_INST (KVM_REG_LOONGARCH_KVM | KVM_REG_SIZE_U64 | 3)
|
|
|
|
#define LOONGARCH_REG_SHIFT 3
|
|
#define LOONGARCH_REG_64(TYPE, REG) (TYPE | KVM_REG_SIZE_U64 | (REG << LOONGARCH_REG_SHIFT))
|
|
--
|
|
2.33.0
|
|
|