diff options
Diffstat (limited to 'virt')
| -rw-r--r-- | virt/kvm/async_pf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/virt/kvm/async_pf.c b/virt/kvm/async_pf.c index 44660aee335f..77d42be6970e 100644 --- a/virt/kvm/async_pf.c +++ b/virt/kvm/async_pf.c | |||
| @@ -94,6 +94,10 @@ static void async_pf_execute(struct work_struct *work) | |||
| 94 | 94 | ||
| 95 | trace_kvm_async_pf_completed(addr, gva); | 95 | trace_kvm_async_pf_completed(addr, gva); |
| 96 | 96 | ||
| 97 | /* | ||
| 98 | * This memory barrier pairs with prepare_to_wait's set_current_state() | ||
| 99 | */ | ||
| 100 | smp_mb(); | ||
| 97 | if (waitqueue_active(&vcpu->wq)) | 101 | if (waitqueue_active(&vcpu->wq)) |
| 98 | wake_up_interruptible(&vcpu->wq); | 102 | wake_up_interruptible(&vcpu->wq); |
| 99 | 103 | ||
