Re: [PATCH] KVM:VMX: Add support for Pause-Loop Exiting

Avi Kivity
2009-07-08T04:43:41Z

On 07/08/2009 06:32 AM, Zhai, Edwin wrote:
>
> /*
> + * Indicate a busy-waiting vcpu in spinlock. We do not enable the PAUSE
> + * exiting, so only get here on cpu with PAUSE-Loop-Exiting.
> + */
> +static int handle_pause(struct kvm_vcpu *vcpu,
> + struct kvm_run *kvm_run)
> +{
> + skip_emulated_instruction(vcpu);
> + yield();
> + return 1;
> +}
> +
>

yield() does nothing in Linux. Please look at
http://lkml.org/lkml/2009/5/11/294 for what needs to be added to the
scheduler (that message is part of a thread discussing the same feature
for svm).

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