summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-08-23 16:46:21 +0200
committerAvi Kivity <avi@redhat.com>2009-12-03 08:32:05 +0100
commit45ec431c52f89218ac01d87663e54de30458edf0 (patch)
tree53ad658dad412709cdb0aba3d84b5af2ab47e17d /virt
parentMerge remote branch 'tip/x86/entry' into kvm-updates/2.6.33 (diff)
downloadlinux-45ec431c52f89218ac01d87663e54de30458edf0.tar.xz
linux-45ec431c52f89218ac01d87663e54de30458edf0.zip
KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()
Preemption notifiers will do that for us automatically. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 0 insertions, 2 deletions
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);