summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/kvm_para.h
diff options
context:
space:
mode:
authorDavid Daney2014-05-28 23:52:12 +0200
committerRalf Baechle2014-05-30 21:01:11 +0200
commit90dfdc7ceb577c0d7b7635def3c62039a091e50d (patch)
treee20938cbe7d542786d79371b38a6ba0090c8829a /include/uapi/linux/kvm_para.h
parentMIPS: OCTEON: Add OCTEON3 to __get_cpu_type (diff)
downloadkernel-qcow2-linux-90dfdc7ceb577c0d7b7635def3c62039a091e50d.tar.gz
kernel-qcow2-linux-90dfdc7ceb577c0d7b7635def3c62039a091e50d.tar.xz
kernel-qcow2-linux-90dfdc7ceb577c0d7b7635def3c62039a091e50d.zip
MIPS: Add functions for hypervisor call
Introduce kvm_hypercall[0-3]. Define three new hypercalls for MIPS: GET_CLOCK_FREQ, EXIT_VM, and CONSOLE_OUTPUT. [andreas.herrmann: * Properly define hypercalls and HC numbers for MIPS in kvm_para.h header files] Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com> Cc: linux-mips@linux-mips.org Cc: James Hogan <james.hogan@imgtec.com> Cc: kvm@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/7005/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/uapi/linux/kvm_para.h')
-rw-r--r--include/uapi/linux/kvm_para.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm_para.h b/include/uapi/linux/kvm_para.h
index 2841f86eae0b..bf6cd7d5cac2 100644
--- a/include/uapi/linux/kvm_para.h
+++ b/include/uapi/linux/kvm_para.h
@@ -20,6 +20,9 @@
#define KVM_HC_FEATURES 3
#define KVM_HC_PPC_MAP_MAGIC_PAGE 4
#define KVM_HC_KICK_CPU 5
+#define KVM_HC_MIPS_GET_CLOCK_FREQ 6
+#define KVM_HC_MIPS_EXIT_VM 7
+#define KVM_HC_MIPS_CONSOLE_OUTPUT 8
/*
* hypercalls use architecture specific