[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/10] target/arm: Restrict KVM-specific fields from ArchCPU
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 07/10] target/arm: Restrict KVM-specific fields from ArchCPU |
Date: |
Wed, 5 Apr 2023 18:04:51 +0200 |
These fields shouldn't be accessed when KVM is not available.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/arm/cpu.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index c097cae988..efd1b010d5 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -945,6 +945,7 @@ struct ArchCPU {
*/
uint32_t kvm_target;
+#ifdef CONFIG_KVM
/* KVM init features for this CPU */
uint32_t kvm_init_features[7];
@@ -957,6 +958,7 @@ struct ArchCPU {
/* KVM steal time */
OnOffAuto kvm_steal_time;
+#endif /* CONFIG_KVM */
/* Uniprocessor system with MP extensions */
bool mp_is_up;
--
2.38.1
- Re: [PATCH 03/10] hw/intc/arm_gic: Un-inline GIC*/ITS class_name() helpers, (continued)
- [PATCH 04/10] hw/intc/arm_gic: Rename 'first_cpu' argument, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 06/10] target/arm: Reduce QMP header pressure by not including 'kvm_arm.h', Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 07/10] target/arm: Restrict KVM-specific fields from ArchCPU,
Philippe Mathieu-Daudé <=
- [PATCH 08/10] target/ppc: Restrict KVM-specific field from ArchCPU, Philippe Mathieu-Daudé, 2023/04/05
- [RFC PATCH 09/10] target/riscv: Restrict KVM-specific fields from ArchCPU, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 10/10] hw/s390x: Rename pv.c -> pv-kvm.c, Philippe Mathieu-Daudé, 2023/04/05