KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()
authorAvi Kivity <avi@redhat.com>
Sun, 23 Aug 2009 14:46:21 +0000 (17:46 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:05 +0000 (09:32 +0200)
Preemption notifiers will do that for us automatically.

Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c

index 7495ce3473448cd45ee1dba9e0ae441c83245ca4..22b520b54411f29ef8fd7fa6656e5e5f18a55b51 100644 (file)
@@ -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);