]> 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)
commit766be8aa0a6a99bf35cfa2e05e423f710126ce2c
tree8eef48cca30f0e1d0a860eb932c5dc1c74e2762a
parent835e04e4dc3c4ab875d341f129c9ac33e2ea177c
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