]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm/mmu: check if MMU reconfiguration is needed in init_kvm_nested_mmu()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 8 Oct 2018 19:28:13 +0000 (21:28 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:30:07 +0000 (00:30 +0200)
commitd41a300c49481acd07c2934d4e78413465236ffa
treef145ab1ad791966a994db9966e9f340ab5418ab1
parent22e08c018391a501648647a04708c3a0b6c48dd8
x86/kvm/mmu: check if MMU reconfiguration is needed in init_kvm_nested_mmu()

We don't use root page role for nested_mmu, however, optimizing out
re-initialization in case nothing changed is still valuable as this
is done for every nested vmentry.

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