qemu-e2k/target-i386
Paolo Bonzini 60e68042cf apic: avoid getting out of halted state on masked PIC interrupts
After the next patch, if a masked PIC interrupts causes CPU_INTERRUPT_POLL
to be set, the CPU will spuriously get out of halted state.  While this
is technically valid, we should avoid that.

Make CPU_INTERRUPT_POLL run apic_update_irq in the right thread and then
look at CPU_INTERRUPT_HARD.  If CPU_INTERRUPT_HARD does not get set,
do not report the CPU as having work.

Also move the handling of software-disabled APIC from apic_update_irq
to apic_irq_pending, and always trigger CPU_INTERRUPT_POLL.  This will
be important once we will add a case that resets CPU_INTERRUPT_HARD
from apic_update_irq.  We want to run it even if we go through
CPU_INTERRUPT_POLL, and even if the local APIC is software disabled.

Reported-by: Richard Bilson <rbilson@qnx.com>
Tested-by: Richard Bilson <rbilson@qnx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-11-24 14:37:30 +01:00
..
arch_dump.c
arch_memory_mapping.c
cc_helper_template.h
cc_helper.c
cpu-qom.h target-i386: Use cpu_exec_interrupt qom hook 2014-09-25 18:54:22 +01:00
cpu.c apic: avoid getting out of halted state on masked PIC interrupts 2014-11-24 14:37:30 +01:00
cpu.h target-i386: fix Coverity complaints about overflows 2014-11-13 16:13:27 +01:00
excp_helper.c
fpu_helper.c target-i386: update fp status fix 2014-09-18 17:06:12 +02:00
gdbstub.c target-i386: update fp status fix 2014-09-18 17:06:12 +02:00
helper.c target-i386: Use cpu_exec_enter/exit qom hooks 2014-09-25 18:54:21 +01:00
helper.h
int_helper.c
ioport-user.c
kvm_i386.h
kvm-stub.c
kvm.c target-i386: add Intel AVX-512 support 2014-10-24 18:03:14 +02:00
machine.c target-i386: add Intel AVX-512 support 2014-10-24 18:03:14 +02:00
Makefile.objs
mem_helper.c
misc_helper.c
ops_sse_header.h
ops_sse.h target-i386: Use Common ShiftRows and InvShiftRows Tables 2014-06-16 13:24:33 +02:00
seg_helper.c target-i386: eliminate dead code and hoist common code out of "if" 2014-11-12 12:43:45 +01:00
shift_helper_template.h
smm_helper.c Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-05 19:16:28 +01:00
svm_helper.c Merge remote-tracking branch 'remotes/bonzini/softmmu-smap' into staging 2014-06-05 21:06:14 +01:00
svm.h
TODO
topology.h
translate.c i386: fix breakpoints handling in icount mode 2014-10-31 16:41:05 +01:00