diff options
author | Sanjay Lal <sanjayl@kymasys.com> | 2014-06-17 23:10:32 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-18 16:58:52 +0200 |
commit | e2132e0bba7751be7af7e3ebcd6f39e77f76d05e (patch) | |
tree | 898f979e8f980206bde51f3396fbbe00681dd261 /target-mips/kvm_mips.h | |
parent | aed6efb90cc43faf45f1e40425646c55d37a340f (diff) | |
download | qemu-e2132e0bba7751be7af7e3ebcd6f39e77f76d05e.tar.gz qemu-e2132e0bba7751be7af7e3ebcd6f39e77f76d05e.tar.bz2 qemu-e2132e0bba7751be7af7e3ebcd6f39e77f76d05e.zip |
target-mips: kvm: Add main KVM support for MIPS
Implement the main KVM arch API for MIPS.
Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Andreas Färber <afaerber@suse.de>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-mips/kvm_mips.h')
-rw-r--r-- | target-mips/kvm_mips.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target-mips/kvm_mips.h b/target-mips/kvm_mips.h new file mode 100644 index 0000000000..54f59656ef --- /dev/null +++ b/target-mips/kvm_mips.h @@ -0,0 +1,26 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * KVM/MIPS: MIPS specific KVM APIs + * + * Copyright (C) 2012-2014 Imagination Technologies Ltd. + * Authors: Sanjay Lal <sanjayl@kymasys.com> +*/ + +#ifndef __KVM_MIPS_H__ +#define __KVM_MIPS_H__ + +/** + * kvm_mips_reset_vcpu: + * @cpu: MIPSCPU + * + * Called at reset time to set kernel registers to their initial values. + */ +void kvm_mips_reset_vcpu(MIPSCPU *cpu); + +int kvm_mips_set_interrupt(MIPSCPU *cpu, int irq, int level); +int kvm_mips_set_ipi_interrupt(MIPSCPU *cpu, int irq, int level); + +#endif /* __KVM_MIPS_H__ */ |