]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: mmu: remove uninteresting MMU "new_cr3" callbacks
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Oct 2013 14:56:11 +0000 (16:56 +0200)
committerGleb Natapov <gleb@redhat.com>
Thu, 3 Oct 2013 12:43:59 +0000 (15:43 +0300)
commit857dafb2648cea119fd24715d38ff1b6a5d1140a
tree32a93165eb561cf337edc2def307bf0bbf9af126
parent031299b721d7ecb278f7c54c60dc1240a6c7bd99
KVM: mmu: remove uninteresting MMU "new_cr3" callbacks

The new_cr3 MMU callback has been a wrapper for mmu_free_roots since commit
fba03a4 (KVM: MMU: Force cr3 reload with two dimensional paging on mov
cr3 emulation, 2012-07-08).

The commit message mentioned that "mmu_free_roots() is somewhat of an overkill,
but fixing that is more complicated and will be done after this minimal fix".
One year has passed, and no one really felt the need to do a different fix.
Wrap the call with a kvm_mmu_new_cr3 function for clarity, but remove the
callback.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c