[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 5/8] x86/SVM: Add interrupt management code via AVIC
>>> On 04.04.18 at 01:01, <Janakarajan.Natarajan@xxxxxxx> wrote: > +void svm_avic_deliver_posted_intr(struct vcpu *v, u8 vec) > +{ > + struct vlapic *vlapic = vcpu_vlapic(v); > + > + /* Fallback to use non-AVIC if vcpu is not enabled with AVIC. */ > + if ( !svm_avic_vcpu_enabled(v) ) > + { > + if ( !vlapic_test_and_set_vector(vec, &vlapic->regs->data[APIC_IRR]) > ) > + vcpu_kick(v); > + return; > + } > + > + /* If interrupt is disabled, do not ignore the interrupt */ > + if ( !(guest_cpu_user_regs()->eflags & X86_EFLAGS_IF) ) > + return; I'm confused by the comment: How is returning here without any indication to the caller different from ignoring the interrupt? How come EFLAGS.IF matters here in the first place? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |