Paolo Bonzini wrote on 2013-04-10: > Il 08/04/2013 16:23, Yang Zhang ha scritto: >> + * interrupt from PIR in next vmentry. >> + */ >> +static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) >> +{ >> + struct vcpu_vmx *vmx = to_vmx(vcpu); >> + int r; >> + >> + if (pi_test_and_set_pir(vector, &vmx->pi_desc)) >> + return; >> + >> + r = pi_test_and_set_on(&vmx->pi_desc); >> + kvm_make_request(KVM_REQ_EVENT, vcpu); >> + if (!r && (vcpu->mode == IN_GUEST_MODE)) >> + apic->send_IPI_mask(get_cpu_mask(vcpu->cpu), >> + POSTED_INTR_VECTOR); >> + else >> + kvm_vcpu_kick(vcpu); >> + >> + return; >> +} > > No need for this return. Right. Will remove it in next version. Best regards, Yang -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html