All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on pci-passthrough and event delivery
@ 2010-04-08  8:48 Thomas Pfeuffer
  2010-04-08 14:03 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Pfeuffer @ 2010-04-08  8:48 UTC (permalink / raw)
  To: xen-devel

Hello,

I am using pci-passthrough mechanism in Xen 3.4.2-rc2 to passthrough the 
only Network Interface Card to a pv driver domain.

I have observed in xentrace output, that everytime a network packet 
arrives, the Xen hypervisor delivers an event to the driver domain and 
to dom0. I would think, that it is not neccassary to inform dom0, since 
only the driver domain has access to the NIC.

Why is the interrupt from the NIC delivered to dom0 via an event, too? 
Is it neccassary for pciback in dom0?

regards,

Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question on pci-passthrough and event delivery
  2010-04-08  8:48 Question on pci-passthrough and event delivery Thomas Pfeuffer
@ 2010-04-08 14:03 ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 2+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-04-08 14:03 UTC (permalink / raw)
  To: Thomas Pfeuffer; +Cc: xen-devel, mark.hurenkamp, thomas

On Thu, Apr 08, 2010 at 10:48:03AM +0200, Thomas Pfeuffer wrote:
> Hello,
>
> I am using pci-passthrough mechanism in Xen 3.4.2-rc2 to passthrough the  
> only Network Interface Card to a pv driver domain.
>
> I have observed in xentrace output, that everytime a network packet  
> arrives, the Xen hypervisor delivers an event to the driver domain and  
> to dom0. I would think, that it is not neccassary to inform dom0, since  
> only the driver domain has access to the NIC.
>
> Why is the interrupt from the NIC delivered to dom0 via an event, too?  

The primary reason is that the SHARED_IRQ flag is set for the IRQ so
Xen delievers the IRQ to both Dom0 and the DomU which has the PCI device.

This is neccessary when there are more than one device sharing the same
IRQ (and they are in different domains). For situations in which there
is only device using the IRQ, this isn't neccessary - in fact, I think
this might be the bug that has been plaguing some users.

> Is it neccassary for pciback in dom0?

No. The events between PCI back and PCI front are via their own little
mechanism and it is only be used when a PCI device writes configuration
data or changes some state. Normal opperations, should not trigger this.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-08 14:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08  8:48 Question on pci-passthrough and event delivery Thomas Pfeuffer
2010-04-08 14:03 ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.