android_kernel_samsung_msm8976/arch/s390/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
..
diag.c KVM: s390: intercepts for diagnose instructions 2008-04-27 12:00:46 +03:00
gaccess.h
intercept.c KVM: s390: intercepts for diagnose instructions 2008-04-27 12:00:46 +03:00
interrupt.c KVM: hlt emulation should take in-kernel APIC/PIT timers into account 2008-04-27 12:04:11 +03:00
Kconfig KVM: s390: Stub out kvmtrace 2008-04-27 12:01:20 +03:00
kvm-s390.c KVM: s390: Fix incorrect return value 2008-04-27 12:00:58 +03:00
kvm-s390.h KVM: s390: intercepts for diagnose instructions 2008-04-27 12:00:46 +03:00
Makefile KVM: s390: intercepts for diagnose instructions 2008-04-27 12:00:46 +03:00
priv.c KVM: s390: rename stfl to kvm_stfl 2008-04-27 12:00:59 +03:00
sie64a.S
sigp.c KVM: s390: interprocessor communication via sigp 2008-04-27 12:00:46 +03:00