[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 0/6] MSI-INTx interrupt translation for HVM



On Mon, 2009-03-02 at 16:47 +0800, Keir Fraser wrote:
> On 02/03/2009 07:19, "Shohei Fujiwara" <fujiwara-sxa@xxxxxxxxxxxxxxx> wrote:
> 
> > Today, I found the hypervisor issues EOI ASAP. So Qing's explanation
> > reflected the implementation of the hypervisor.
> > 
> > xen/drivers/passthrough/io.c:
> > void hvm_dirq_assist(struct vcpu *v)
> > {
> > ...
> >             if ( hvm_irq_dpci->mirq[irq].flags & HVM_IRQ_DPCI_TRANSLATE )
> >             {
> >                 /* for translated MSI to INTx interrupt, eoi as early as
> > possible */
> >                 __msi_pirq_eoi(d, irq);
> >             }
> 
> Ah, well the passthrough-specific logic is not something I'm so familiar
> with! That above code indeed doesn't look correct. :-)

I recently learned that some device may keep issuing MSI until it is explicitly
cleared by software. In that case it just behaves like level-triggered
interrupt, and doing something like the code above will cause interrupt storm.
This is reflected in cs. 19065.

Do you mean this issue?

Thanks,
Qing


> 
>  -- Keir
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.