]> 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)
commitc74d843f2c393ff22e1d37898b65dd254eef3158
treef145ab1ad791966a994db9966e9f340ab5418ab1
parent0eaada31f83f9b0d5545256c32048fd86d09f2b9
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