Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45ec431c authored by Avi Kivity's avatar Avi Kivity
Browse files

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -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);