[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v13 06/12] target-arm: kvm64: detect whether can set
From: |
Dongjiu Geng |
Subject: |
[Qemu-devel] [PATCH v13 06/12] target-arm: kvm64: detect whether can set vsesr_el2 |
Date: |
Tue, 28 Nov 2017 02:49:49 +0800 |
Check if kvm can support to set vsesr_el2 value for vcpu. When
guest takes a virtual SError interrupt exception, this value
will provides syndrome value reported into ESR_EL1 ISS filed.
Signed-off-by: Dongjiu Geng <address@hidden>
Signed-off-by: Quanming Wu <address@hidden>
---
Address James's(address@hidden) comments to detect whether KVM has the
capability to set ESR
instead of detecting CPU RAS capability in [1]
[1]
https://www.spinics.net/lists/kvm-arm/msg27150.html
https://www.spinics.net/lists/arm-kernel/msg604440.html
---
target/arm/kvm64.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
index a16abc8..af8ebc9 100644
--- a/target/arm/kvm64.c
+++ b/target/arm/kvm64.c
@@ -980,3 +980,9 @@ bool kvm_arm_handle_debug(CPUState *cs, struct
kvm_debug_exit_arch *debug_exit)
return false;
}
+
+static bool kvm_can_set_vcpu_esr(struct KVMState *state)
+{
+ int ret = kvm_check_extension(state, KVM_CAP_ARM_INJECT_SERROR_ESR);
+ return (ret) ? true : false;
+}
--
1.8.3.1
- [Qemu-devel] [PATCH v13 00/12] Add ARMv8 RAS virtualization support in QEMU, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 06/12] target-arm: kvm64: detect whether can set vsesr_el2,
Dongjiu Geng <=
- [Qemu-devel] [PATCH v13 05/12] linux-headers: sync against Linux v4.14-rc8, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 04/12] ACPI: enable APEI GHES in the configure file and build it, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 03/12] docs: APEI GHES generation description, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 07/12] target-arm: handle SError interrupt exception from the guest OS, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 02/12] ACPI: Add APEI GHES table generation and CPER record support, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 11/12] hw/arm/virt: Add RAS platform version for migration, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 09/12] Move related hwpoison page function to accel/kvm/ folder, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 12/12] target-arm: kvm64: handle SIGBUS signal from kernel or KVM, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 01/12] ACPI: add related GHES structures and macros definition, Dongjiu Geng, 2017/11/27
- [Qemu-devel] [PATCH v13 08/12] target-arm: kvm64: inject synchronous External Abort, Dongjiu Geng, 2017/11/27