]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34166b4eab9634b30e05818b3a7af8f2f3c03a3b
treef96c07d1053c8e3647a9254523fe073c39839e69
parent02cf7e82ff45833fbe30c65dc5da8fea5ee095f8
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