On 11/30/2011 10:59 AM, Raghavendra K T wrote:> Add a hypercall to KVM hypervisor to support pv-ticketlocks >> KVM_HC_KICK_CPU allows the calling vcpu to kick another vcpu out of halt state.> > The presence of these hypercalls is indicated to guest via> KVM_FEATURE_KICK_VCPU/KVM_CAP_KICK_VCPU.>> Qemu needs a corresponding patch to pass up the presence of this feature to > guest via cpuid. Patch to qemu will be sent separately.>> There is no Xen/KVM hypercall interface to await kick from.

The hypercall needs to be documented inDocumentation/virtual/kvm/hypercalls.txt.

Have you tested it on AMD machines? There are some differences in thehypercall infrastructure there.

> /* This indicates that the new set of kvmclock msrs> * are available. The use of 0x11 and 0x12 is deprecated> */> #define KVM_FEATURE_CLOCKSOURCE2 3> #define KVM_FEATURE_ASYNC_PF 4> #define KVM_FEATURE_STEAL_TIME 5> +#define KVM_FEATURE_KICK_VCPU 6