[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/12] KVM/MIPS: In KVM mode, inject IRQ2 (I/O) inte
From: |
Sanjay Lal |
Subject: |
[Qemu-devel] [PATCH 05/12] KVM/MIPS: In KVM mode, inject IRQ2 (I/O) interupts via ioctls(). COP0 emulation is in-kernel |
Date: |
Sat, 2 Mar 2013 07:18:40 -0800 |
---
hw/mips_int.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/hw/mips_int.c b/hw/mips_int.c
index 6423fd0..6c655af 100644
--- a/hw/mips_int.c
+++ b/hw/mips_int.c
@@ -23,6 +23,8 @@
#include "hw.h"
#include "mips_cpudevs.h"
#include "cpu.h"
+#include "sysemu/kvm.h"
+#include "kvm_mips.h"
static void cpu_mips_irq_request(void *opaque, int irq, int level)
{
@@ -33,8 +35,21 @@ static void cpu_mips_irq_request(void *opaque, int irq, int
level)
if (level) {
env->CP0_Cause |= 1 << (irq + CP0Ca_IP);
+
+#ifdef CONFIG_KVM
+ if (kvm_enabled() && irq == 2) {
+ kvm_mips_set_interrupt (env, irq, level);
+ }
+#endif
+
} else {
env->CP0_Cause &= ~(1 << (irq + CP0Ca_IP));
+
+#ifdef CONFIG_KVM
+ if (kvm_enabled() && irq == 2) {
+ kvm_mips_set_interrupt (env, irq, level);
+ }
+#endif
}
if (env->CP0_Cause & CP0Ca_IP_mask) {
--
1.7.11.3
- Re: [Qemu-devel] [PATCH 11/12] KVM/MIPS: MIPS specfic APIs for KVM., (continued)
- [Qemu-devel] [PATCH 12/12] KVM/MIPS: General KVM support and support for SMP Guests, Sanjay Lal, 2013/03/02
- [Qemu-devel] [PATCH 08/12] KVM/MIPS: Enable KVM/MIPS for MIPS targets. Add MIPS GIC code to the build., Sanjay Lal, 2013/03/02
- [Qemu-devel] [PATCH 01/12] KVM/MIPS: Bootcode for MIPS SMP configurations with a GCMP, Sanjay Lal, 2013/03/02
- [Qemu-devel] [PATCH 01/12] MIPS: Bootcode for MIPS SMP configurations with a GCMP, Sanjay Lal, 2013/03/02
- [Qemu-devel] [PATCH 05/12] KVM/MIPS: In KVM mode, inject IRQ2 (I/O) interupts via ioctls(). COP0 emulation is in-kernel,
Sanjay Lal <=
- [Qemu-devel] [PATCH 04/12] KVM/MIPS: Do not start the periodic timer in KVM mode. Compare/Count timer interrupts are handled in-kernel., Sanjay Lal, 2013/03/02
- [Qemu-devel] [PATCH 06/12] KVM/MIPS: Define APIs to convert Guest KSEG0 <-> Guest Physical addresses., Sanjay Lal, 2013/03/02
- [Qemu-devel] [PATCH 10/12] KVM/MIPS: Set page size to 16K in KVM mode., Sanjay Lal, 2013/03/02
- Re: [Qemu-devel] [PATCH 00/12] KVM Support for MIPS32 Processors, Zhang, Yang Z, 2013/03/03
- Re: [Qemu-devel] [PATCH 00/12] KVM Support for MIPS32 Processors, Andreas Färber, 2013/03/04