lkml.org 
[lkml]   [2026]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v1 21/42] KVM: x86: exit VM planes and VBS hypercalls to userspace
Date
---
arch/x86/kvm/x86.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index d4210053e6b8..00dcdd0e22a4 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -119,10 +119,11 @@ u64 __read_mostly efer_reserved_bits = ~((u64)(EFER_SCE | EFER_LME | EFER_LMA));
static u64 __read_mostly efer_reserved_bits = ~((u64)EFER_SCE);
#endif

-#define KVM_EXIT_HYPERCALL_VALID_MASK (BIT(KVM_HC_MAP_GPA_RANGE) | \
- BIT(KVM_HC_VM_PLANES_CONFIG) | \
- BIT(KVM_HC_VM_PLANES_ACTIVATE) | \
- BIT(KVM_HC_VBS_VTL_CALL))
+#define KVM_EXIT_HYPERCALL_VALID_MASK \
+ ((1 << KVM_HC_MAP_GPA_RANGE) | \
+ (1 << KVM_HC_VM_PLANES_CONFIG) | \
+ (1 << KVM_HC_VM_PLANES_ACTIVATE) | \
+ (1 << KVM_HC_VBS_VTL_CALL))

#define KVM_CAP_PMU_VALID_MASK KVM_PMU_CAP_DISABLE

@@ -478,7 +479,7 @@ static unsigned int num_msr_based_features;

unsigned kvm_x86_default_max_planes(struct kvm *kvm)
{
- return 1;
+ return 2;
}
EXPORT_SYMBOL_FOR_KVM_INTERNAL(kvm_x86_default_max_planes);

--
2.55.0

\
 
 \ /
  Last update: 2026-08-05 13:16    [W:0.202 / U:8.443 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog