summaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm/mips.c
diff options
context:
space:
mode:
authorJames Hogan2017-03-14 11:15:23 +0100
committerJames Hogan2017-03-28 15:53:49 +0200
commitedab4fe1f6419fc3a1de3b134929ae2123bea3ad (patch)
tree96276ad80364be42514b6243b74a032954e04087 /arch/mips/kvm/mips.c
parentKVM: MIPS: Add callback to check extension (diff)
downloadkernel-qcow2-linux-edab4fe1f6419fc3a1de3b134929ae2123bea3ad.tar.gz
kernel-qcow2-linux-edab4fe1f6419fc3a1de3b134929ae2123bea3ad.tar.xz
kernel-qcow2-linux-edab4fe1f6419fc3a1de3b134929ae2123bea3ad.zip
KVM: MIPS: Add hardware_{enable,disable} callback
Add an implementation callback for the kvm_arch_hardware_enable() and kvm_arch_hardware_disable() architecture functions, with simple stubs for trap & emulate. This is in preparation for VZ which will make use of them. 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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index 78d58c2528a9..5681117083af 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -92,7 +92,12 @@ int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu)
int kvm_arch_hardware_enable(void)
{
- return 0;
+ return kvm_mips_callbacks->hardware_enable();
+}
+
+void kvm_arch_hardware_disable(void)
+{
+ kvm_mips_callbacks->hardware_disable();
}
int kvm_arch_hardware_setup(void)