diff options
author | Gleb Natapov <gleb@redhat.com> | 2012-05-03 10:36:39 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-05-06 13:56:54 +0200 |
commit | a4fa16353108431e7cfdfc3ecf683bac21b50755 (patch) | |
tree | a6d8b41f8873b8d7bfe30c33d08e71a11d19b173 /mm/ksm.c | |
parent | Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/t... (diff) | |
download | linux-a4fa16353108431e7cfdfc3ecf683bac21b50755.tar.xz linux-a4fa16353108431e7cfdfc3ecf683bac21b50755.zip |
KVM: ensure async PF event wakes up vcpu from halt
If vcpu executes hlt instruction while async PF is waiting to be delivered
vcpu can block and deliver async PF only after another even wakes it
up. This happens because kvm_check_async_pf_completion() will remove
completion event from vcpu->async_pf.done before entering kvm_vcpu_block()
and this will make kvm_arch_vcpu_runnable() return false. The solution
is to make vcpu runnable when processing completion.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions