]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS: Drop vm_init() callback
authorJames Hogan <james.hogan@imgtec.com>
Wed, 16 Nov 2016 17:36:47 +0000 (17:36 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:21:00 +0000 (15:21 +0000)
commit7b39ec6f987dfd234d242d2bf2fe1ee4b826434a
tree34bdd5b0ce64c411b27d500b1e3b4f118e3e0e51
parentc2d2ded1a48c42044514deeefd8192263d35005a
KVM: MIPS: Drop vm_init() callback

Now that the commpage doesn't use wired TLB entries, the per-CPU
vm_init() callback is the only work done by kvm_mips_init_vm_percpu().

The trap & emulate implementation doesn't actually need to do anything
from vm_init(), and the future VZ implementation would be better served
by a kvm_arch_hardware_enable callback anyway.

Therefore drop the vm_init() callback entirely, allowing the
kvm_mips_init_vm_percpu() function to also be dropped, along with the
kvm_mips_instance atomic counter.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/mips.c
arch/mips/kvm/tlb.c
arch/mips/kvm/trap_emul.c