提交 45ec431c 编写于 作者: A Avi Kivity

KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()

Preemption notifiers will do that for us automatically.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 58988b07
...@@ -1689,9 +1689,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册