[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 1/5] linux-headers: [kvm, arm64] add the necessary definition
From: |
Miguel Luis |
Subject: |
[RFC PATCH 1/5] linux-headers: [kvm, arm64] add the necessary definitions to match host kernel |
Date: |
Mon, 27 Feb 2023 15:37:14 -0100 |
From: Haibo Xu <haibo.xu@linaro.org>
linux-headers define host properties needed for the VMM to interact with
KVM, so let's include them *while* they're not available yet on linux
upstream since aarch64 nested virtualization is still a work in
progress.
Ref:
https://lore.kernel.org/qemu-devel/636b5932e4cf061b6f97516e82d4319c1d29b871.1616052889.git.haibo.xu@linaro.org/
Signed-off-by: Haibo Xu <haibo.xu@linaro.org>
Signed-off-by: Miguel Luis <miguel.luis@oracle.com>
---
linux-headers/asm-arm64/kvm.h | 2 ++
linux-headers/linux/kvm.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h
index 4bf2d7246e..7bbcba7418 100644
--- a/linux-headers/asm-arm64/kvm.h
+++ b/linux-headers/asm-arm64/kvm.h
@@ -108,6 +108,7 @@ struct kvm_regs {
#define KVM_ARM_VCPU_SVE 4 /* enable SVE for this CPU */
#define KVM_ARM_VCPU_PTRAUTH_ADDRESS 5 /* VCPU uses address authentication */
#define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 /* VCPU uses generic authentication */
+#define KVM_ARM_VCPU_HAS_EL2 7 /* Support Nested Virtualization */
struct kvm_vcpu_init {
__u32 target;
@@ -379,6 +380,7 @@ enum {
#define KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS 6
#define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7
#define KVM_DEV_ARM_VGIC_GRP_ITS_REGS 8
+#define KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ 9
#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10
#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK \
(0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT)
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index ebdafa576d..bfd1d73988 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -1175,6 +1175,7 @@ struct kvm_ppc_resize_hpt {
#define KVM_CAP_VM_DISABLE_NX_HUGE_PAGES 220
#define KVM_CAP_S390_ZPCI_OP 221
#define KVM_CAP_S390_CPU_TOPOLOGY 222
+#define KVM_CAP_ARM_EL2 226
#ifdef KVM_CAP_IRQ_ROUTING
--
2.39.2
- [RFC PATCH 0/5] QEMU v7.2.0 aarch64 Nested Virtualization Support, Miguel Luis, 2023/02/27
- [RFC PATCH 1/5] linux-headers: [kvm, arm64] add the necessary definitions to match host kernel,
Miguel Luis <=
- [RFC PATCH 2/5] hw/intc/gicv3: add support for setting KVM vGIC maintenance IRQ, Miguel Luis, 2023/02/27
- [RFC PATCH 3/5] target/arm/kvm: add helper to detect EL2 when using KVM, Miguel Luis, 2023/02/27
- [RFC PATCH 4/5] target/arm: enable feature ARM_FEATURE_EL2 if EL2 is supported, Miguel Luis, 2023/02/27
- [RFC PATCH 5/5] arm/virt: provide virtualization extensions to the guest, Miguel Luis, 2023/02/27