]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm/nVMX: introduce source data cache for kvm_init_shadow_ept_mmu()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 8 Oct 2018 19:28:11 +0000 (21:28 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:30:06 +0000 (00:30 +0200)
commit9e019b00517ad21524de1ece967e77f880353604
tree8eef48cca30f0e1d0a860eb932c5dc1c74e2762a
parente7388661f9cfecdf3e68b92b5913255774406144
x86/kvm/nVMX: introduce source data cache for kvm_init_shadow_ept_mmu()

MMU re-initialization is expensive, in particular,
update_permission_bitmask() and update_pkru_bitmask() are.

Cache the data used to setup shadow EPT MMU and avoid full re-init when
it is unchanged.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c