[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 02/14] replay: improve interrupt handling
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v7 02/14] replay: improve interrupt handling |
Date: |
Tue, 24 Jan 2017 10:17:08 +0300 |
User-agent: |
StGit/0.16 |
This patch improves interrupt handling in record/replay mode.
Now "interrupt" event is saved only when cc->cpu_exec_interrupt returns true.
This patch also adds missing return to cpu_exec_interrupt function.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
cpu-exec.c | 2 +-
target/i386/seg_helper.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cpu-exec.c b/cpu-exec.c
index 4188fed..fa08c73 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -508,8 +508,8 @@ static inline void cpu_handle_interrupt(CPUState *cpu,
True when it is, and we should restart on a new TB,
and via longjmp via cpu_loop_exit. */
else {
- replay_interrupt();
if (cc->cpu_exec_interrupt(cpu, interrupt_request)) {
+ replay_interrupt();
*last_tb = NULL;
}
/* The target hook may have updated the 'cpu->interrupt_request';
diff --git a/target/i386/seg_helper.c b/target/i386/seg_helper.c
index fb79f31..d24574d 100644
--- a/target/i386/seg_helper.c
+++ b/target/i386/seg_helper.c
@@ -1331,6 +1331,7 @@ bool x86_cpu_exec_interrupt(CPUState *cs, int
interrupt_request)
#endif
if (interrupt_request & CPU_INTERRUPT_SIPI) {
do_cpu_sipi(cpu);
+ ret = true;
} else if (env->hflags2 & HF2_GIF_MASK) {
if ((interrupt_request & CPU_INTERRUPT_SMI) &&
!(env->hflags & HF_SMM_MASK)) {
- [Qemu-devel] [PATCH v7 00/14] replay additions, Pavel Dovgalyuk, 2017/01/24
- [Qemu-devel] [PATCH v7 01/14] icount: update instruction counter on apic patching, Pavel Dovgalyuk, 2017/01/24
- [Qemu-devel] [PATCH v7 02/14] replay: improve interrupt handling,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Pavel Dovgalyuk, 2017/01/24
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Paolo Bonzini, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Pavel Dovgalyuk, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Paolo Bonzini, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Pavel Dovgalyuk, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Paolo Bonzini, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Pavel Dovgalyuk, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Paolo Bonzini, 2017/01/25
- Re: [Qemu-devel] [PATCH v7 03/14] replay: exception replay fix, Pavel Dovgalyuk, 2017/01/25
[Qemu-devel] [PATCH v7 04/14] icount: exit cpu loop on expire, Pavel Dovgalyuk, 2017/01/24