diff options
author | James Hogan <james.hogan@imgtec.com> | 2017-03-14 11:15:14 +0100 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2017-03-28 15:53:33 +0200 |
commit | 955d8dc3ee555e9320fabbeab0969f9cf7660f9d (patch) | |
tree | b6a2787a9b99078a7387c90a2f8ddaee63840830 /arch/mips/kvm/Makefile | |
parent | MIPS: asm/tlb.h: Add UNIQUE_GUEST_ENTRYHI() macro (diff) | |
download | linux-955d8dc3ee555e9320fabbeab0969f9cf7660f9d.tar.xz linux-955d8dc3ee555e9320fabbeab0969f9cf7660f9d.zip |
KVM: MIPS: Implement HYPCALL emulation
Emulate the HYPCALL instruction added in the VZ ASE and used by the MIPS
paravirtualised guest support that is already merged. The new hypcall.c
handles arguments and the return value. No actual hypercalls are yet
supported, but this still allows us to safely step over hypercalls and
set an error code in the return value for forward compatibility.
Non-zero HYPCALL codes are not handled.
We also document the hypercall ABI which asm/kvm_para.h uses.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Diffstat (limited to 'arch/mips/kvm/Makefile')
-rw-r--r-- | arch/mips/kvm/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kvm/Makefile b/arch/mips/kvm/Makefile index 847429de780d..e56403c8a3f5 100644 --- a/arch/mips/kvm/Makefile +++ b/arch/mips/kvm/Makefile @@ -10,6 +10,7 @@ common-objs-$(CONFIG_CPU_HAS_MSA) += msa.o kvm-objs := $(common-objs-y) mips.o emulate.o entry.o \ interrupt.o stats.o commpage.o \ dyntrans.o trap_emul.o fpu.o +kvm-objs += hypcall.o kvm-objs += mmu.o obj-$(CONFIG_KVM) += kvm.o |