summaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm/mips.c
diff options
context:
space:
mode:
authorJames Hogan2016-09-09 00:00:24 +0200
committerJames Hogan2017-02-03 16:20:49 +0100
commit630766b3694f0574f903863ef5c3cc4f2bbe736f (patch)
treed600a6bcb079e803a6f9cfcf300134e9c5a25466 /arch/mips/kvm/mips.c
parentKVM: MIPS/T&E: active_mm = init_mm in guest context (diff)
downloadkernel-qcow2-linux-630766b3694f0574f903863ef5c3cc4f2bbe736f.tar.gz
kernel-qcow2-linux-630766b3694f0574f903863ef5c3cc4f2bbe736f.tar.xz
kernel-qcow2-linux-630766b3694f0574f903863ef5c3cc4f2bbe736f.zip
KVM: MIPS: Wire up vcpu uninit
Wire up a vcpu uninit implementation callback. This will be used for the clean up of GVA->HPA page tables. 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
Diffstat (limited to 'arch/mips/kvm/mips.c')
-rw-r--r--arch/mips/kvm/mips.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index 1733877d8a53..011710a68c6b 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -1345,6 +1345,11 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
return 0;
}
+void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
+{
+ kvm_mips_callbacks->vcpu_uninit(vcpu);
+}
+
int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu,
struct kvm_translation *tr)
{