Commit 965c037c authored by Avi Kivity's avatar Avi Kivity

KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()

Preemption notifiers will do that for us automatically.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 8e616fc8
......@@ -1676,9 +1676,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu)
if (signal_pending(current))
break;
vcpu_put(vcpu);
schedule();
vcpu_load(vcpu);
}
finish_wait(&vcpu->wq, &wait);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment