[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 49/52] i386: interrupt poll processing
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 49/52] i386: interrupt poll processing |
Date: |
Fri, 25 Sep 2015 18:51:37 +0200 |
From: Pavel Dovgalyuk <address@hidden>
This patch updates x86_cpu_exec_interrupt function.
It can process two interrupt request at a time (poll and another one).
This makes its execution non-deterministic. Determinism is requred
for recorded icount execution.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
target-i386/seg_helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target-i386/seg_helper.c b/target-i386/seg_helper.c
index 1a3a2e7..1cbe559 100644
--- a/target-i386/seg_helper.c
+++ b/target-i386/seg_helper.c
@@ -1321,6 +1321,9 @@ bool x86_cpu_exec_interrupt(CPUState *cs, int
interrupt_request)
if (interrupt_request & CPU_INTERRUPT_POLL) {
cs->interrupt_request &= ~CPU_INTERRUPT_POLL;
apic_poll_irq(cpu->apic_state);
+ /* Don't process multiple interrupt requests in a single call.
+ This is required to make icount-driven execution deterministic. */
+ return true;
}
#endif
if (interrupt_request & CPU_INTERRUPT_SIPI) {
--
2.5.0
- [Qemu-devel] [PULL v2 00/52] Misc changes for 2015-09-25, Paolo Bonzini, 2015/09/25
- [Qemu-devel] [PULL 25/52] hmp: added io apic dump state, Paolo Bonzini, 2015/09/25
- [Qemu-devel] [PULL 49/52] i386: interrupt poll processing,
Paolo Bonzini <=
- [Qemu-devel] [PULL 48/52] i386: partial revert of interrupt poll fix, Paolo Bonzini, 2015/09/25
- [Qemu-devel] [PULL 50/52] typedef: add typedef for QemuOpts, Paolo Bonzini, 2015/09/25
- [Qemu-devel] [PULL 51/52] docs: describe the QEMU build system structure / design, Paolo Bonzini, 2015/09/25
- [Qemu-devel] [PULL 52/52] doc: Refresh URLs in the qemu-tech documentation, Paolo Bonzini, 2015/09/25
- Re: [Qemu-devel] [PULL v2 00/52] Misc changes for 2015-09-25, Peter Maydell, 2015/09/25