Re: [RFC PATCH 3/3] kvm: use yield_to instead of sleep in kvm_vcpu_on_spin

From: Avi Kivity
Date: Sat Dec 11 2010 - 02:27:54 EST


On 12/09/2010 07:07 PM, Rik van Riel wrote:
Right. May be clearer by using a for () loop instead of the goto.


And open coding kvm_for_each_vcpu ?

Somehow I suspect that won't add to clarity...

No, I meant having a for (pass = 0; pass < 2; ++pass) and nesting kvm_for_each_vcpu() in it.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/