Commit 45ec431c 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 58988b07
...@@ -1689,9 +1689,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu) ...@@ -1689,9 +1689,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu)
if (signal_pending(current)) if (signal_pending(current))
break; break;
vcpu_put(vcpu);
schedule(); schedule();
vcpu_load(vcpu);
} }
finish_wait(&vcpu->wq, &wait); 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