OSDN Git Service

kvm: mmu: Add guest_mode to kvm_mmu_page_role
authorJim Mattson <jmattson@google.com>
Wed, 9 May 2018 21:02:04 +0000 (17:02 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 May 2018 16:24:25 +0000 (18:24 +0200)
commit1313cc2bd8f6568dd8801feef446afbe43e6d313
treef96c07d1053c8e3647a9254523fe073c39839e69
parentab5df31cee7f8f17adb59717cf569d315ec02644
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c