From: Avi Kivity Date: Sun, 23 Aug 2009 14:46:21 +0000 (+0300) Subject: KVM: Don't wrap schedule() with vcpu_put()/vcpu_load() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45ec431c52f89218ac01d87663e54de30458edf0;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git KVM: Don't wrap schedule() with vcpu_put()/vcpu_load() Preemption notifiers will do that for us automatically. Signed-off-by: Avi Kivity --- diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 7495ce347344..22b520b54411 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -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);