On 01/16/2012 02:33 PM, Avi Kivity wrote:
+/*
+ * kvm_pv_kick_cpu_op:  Kick a vcpu.
+ *
+ * @apicid - apicid of vcpu to be kicked.
+ */
+static void kvm_pv_kick_cpu_op(struct kvm *kvm, int apicid)
+{
+       struct kvm_vcpu *vcpu = NULL;
+       int i;
+
+       kvm_for_each_vcpu(i, vcpu, kvm) {
+               if (!kvm_apic_present(vcpu))
+                       continue;
+
+               if (kvm_apic_match_dest(vcpu, 0, 0, apicid, 0))
+                       break;
+       }
+       if (vcpu) {
+               kvm_make_request(KVM_REQ_PVLOCK_KICK, vcpu);
+               kvm_vcpu_kick(vcpu);
+       }
+}
+

The code that handles KVM_REQ_PVLOCK_KICK needs to be in this patch.



Yes, Agree. as Alex also pointed, the related hunk from patch 4 should be added here.

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to