On 10/23/2011 09:05 PM, Raghavendra K T wrote:Add two hypercalls to KVM hypervisor to support pv-ticketlocks.
+
+end_wait:
+ finish_wait(&vcpu->wq,&wait);
+}
This hypercall can be replaced by a HLT instruction, no?
I'm pretty sure this misses a lot of stuff from kvm_vcpu_block().
+ if (vcpu) {
+ vcpu->kicked = 1;
Need to use smp memory barriers here.
+ wake_up_interruptible(&vcpu->wq);
+ }
+}
+
int kvm_emulate_hypercall(struct kvm_vcpu *vcpu)
{
unsigned long nr, a0, a1, a2, a3, ret;