linux/arch/ia64/kvm
Marcelo Tosatti 3d80840d96 KVM: hlt emulation should take in-kernel APIC/PIT timers into account
Timers that fire between guest hlt and vcpu_block's add_wait_queue() are
ignored, possibly resulting in hangs.

Also make sure that atomic_inc and waitqueue_active tests happen in the
specified order, otherwise the following race is open:

CPU0                                        CPU1
                                            if (waitqueue_active(wq))
add_wait_queue()
if (!atomic_read(pit_timer->pending))
    schedule()
                                            atomic_inc(pit_timer->pending)

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-04-27 12:04:11 +03:00
..
asm-offsets.c KVM: ia64: Generate offset values for assembly code use 2008-04-27 12:01:10 +03:00
Kconfig KVM: ia64: Stub out kvmtrace 2008-04-27 12:01:21 +03:00
kvm_fw.c KVM: ia64: Add kvm sal/pal virtulization support 2008-04-27 12:01:12 +03:00
kvm_minstate.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
kvm-ia64.c KVM: hlt emulation should take in-kernel APIC/PIT timers into account 2008-04-27 12:04:11 +03:00
lapic.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
Makefile KVM: ia64: Enable kvm build for ia64 2008-04-27 12:01:13 +03:00
misc.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
mmio.c KVM: ia64: Add mmio decoder for kvm/ia64 2008-04-27 12:01:07 +03:00
optvfault.S KVM: ia64: Add optimization for some virtulization faults 2008-04-27 12:01:09 +03:00
process.c KVM: ia64: Add guest interruption injection support 2008-04-27 12:01:11 +03:00
trampoline.S KVM: ia64: Add trampoline for guest/host mode switch 2008-04-27 12:01:08 +03:00
vcpu.c KVM: ia64: Add processor virtulization support 2008-04-27 12:01:09 +03:00
vcpu.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
vmm_ivt.S KVM: ia64: Add interruption vector table for vmm 2008-04-27 12:01:06 +03:00
vmm.c KVM: ia64: VMM module interfaces 2008-04-27 12:01:04 +03:00
vti.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
vtlb.c KVM: ia64: Add TLB virtulization support 2008-04-27 12:01:05 +03:00