summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2018-05-09 17:02:04 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2018-05-14 18:24:25 +0200
commit1313cc2bd8f6568dd8801feef446afbe43e6d313 (patch)
treef96c07d1053c8e3647a9254523fe073c39839e69 /arch/x86/include
parentab5df31cee7f8f17adb59717cf569d315ec02644 (diff)
downloadlinux-stable-1313cc2bd8f6568dd8801feef446afbe43e6d313.tar.gz
linux-stable-1313cc2bd8f6568dd8801feef446afbe43e6d313.tar.bz2
linux-stable-1313cc2bd8f6568dd8801feef446afbe43e6d313.zip
kvm: mmu: Add guest_mode to kvm_mmu_page_role
L1 and L2 need to have disjoint mappings, so that L1's APIC access page (under VMX) can be omitted from L2's mappings. Signed-off-by: Jim Mattson <jmattson@google.com> Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 187c8e09a019..b27de80f5870 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -258,7 +258,8 @@ union kvm_mmu_page_role {
unsigned smep_andnot_wp:1;
unsigned smap_andnot_wp:1;
unsigned ad_disabled:1;
- unsigned :7;
+ unsigned guest_mode:1;
+ unsigned :6;
/*
* This is left at the top of the word so that