RE: [PATCH v8 6/7] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-04-09 Thread Zhang, Yang Z
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_t

Re: [PATCH v8 6/7] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-04-09 Thread Paolo Bonzini
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)) >