KVM: mmu: remove uninteresting MMU "new_cr3" callbacks
commitd8d173dab2505e72b62882e5a580862e6ec1c06c
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Oct 2013 14:56:11 +0000 (2 16:56 +0200)
committerGleb Natapov <gleb@redhat.com>
Thu, 3 Oct 2013 12:43:59 +0000 (3 15:43 +0300)
tree32a93165eb561cf337edc2def307bf0bbf9af126
parent206260941fd4b6f25f28ecf4e267b2f9a0ba72d7
KVM: mmu: remove uninteresting MMU "new_cr3" callbacks

The new_cr3 MMU callback has been a wrapper for mmu_free_roots since commit
e676505 (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