[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 08/20] kvm: x86: Do not leave halt if interrupts
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH v2 08/20] kvm: x86: Do not leave halt if interrupts are disabled |
Date: |
Tue, 15 Mar 2011 12:26:19 +0100 |
When an external interrupt is pending but IF is cleared, we must not
leave the halt state prematurely.
Signed-off-by: Jan Kiszka <address@hidden>
---
target-i386/kvm.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index f7995bd..3a07fce 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -1590,7 +1590,9 @@ int kvm_arch_process_async_events(CPUState *env)
return 0;
}
- if (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
+ if (((env->interrupt_request & CPU_INTERRUPT_HARD) &&
+ (env->eflags & IF_MASK)) ||
+ (env->interrupt_request & CPU_INTERRUPT_NMI)) {
env->halted = 0;
}
if (env->interrupt_request & CPU_INTERRUPT_INIT) {
--
1.7.1
[Qemu-devel] [PATCH v2 08/20] kvm: x86: Do not leave halt if interrupts are disabled,
Jan Kiszka <=
[Qemu-devel] [PATCH v2 10/20] x86: Properly reset PAT MSR, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 07/20] kvm: Add in-kernel irqchip awareness to cpu_thread_is_idle, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 12/20] kvm: x86: Synchronize PAT MSR with the kernel, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 03/20] s390: Detect invalid invocations of qemu_ram_free/remap, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 02/20] x86: Unbreak TCG support for hardware breakpoints, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 05/20] Redirect cpu_interrupt to callback handler, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 04/20] Break up user and system cpu_interrupt implementations, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 09/20] kvm: Mark VCPU state dirty on creation, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 16/20] kvm: Rework inner loop of kvm_cpu_exec, Jan Kiszka, 2011/03/15
[Qemu-devel] [PATCH v2 11/20] x86: Save/restore PAT MSR, Jan Kiszka, 2011/03/15