diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 759af6596a07ec10fd3e54f5c49e8b195a195df0..2ffee3018a3d806b3da8861213610902013752ad 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1788,10 +1788,6 @@ int kvm_vcpu_yield_to(struct kvm_vcpu *target) rcu_read_unlock(); if (!task) return ret; - if (task->flags & PF_VCPU) { - put_task_struct(task); - return ret; - } ret = yield_to(task, 1); put_task_struct(task);