Skip to content

Commit

Permalink
KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()
Browse files Browse the repository at this point in the history
Preemption notifiers will do that for us automatically.

Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
avikivity committed Dec 3, 2009
1 parent 58988b0 commit 45ec431
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1689,9 +1689,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);
Expand Down

0 comments on commit 45ec431

Please sign in to comment.