diff options
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/async_pf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index 1f59498561b2..60df9e059e69 100644 --- a/virt/kvm/async_pf.c +++ b/virt/kvm/async_pf.c | |||
@@ -124,7 +124,8 @@ void kvm_check_async_pf_completion(struct kvm_vcpu *vcpu) | |||
124 | { | 124 | { |
125 | struct kvm_async_pf *work; | 125 | struct kvm_async_pf *work; |
126 | 126 | ||
127 | if (list_empty_careful(&vcpu->async_pf.done)) | 127 | if (list_empty_careful(&vcpu->async_pf.done) || |
128 | !kvm_arch_can_inject_async_page_present(vcpu)) | ||
128 | return; | 129 | return; |
129 | 130 | ||
130 | spin_lock(&vcpu->async_pf.lock); | 131 | spin_lock(&vcpu->async_pf.lock); |