WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Question on pci-passthrough and event delivery

To: Thomas Pfeuffer <thomas.pfeuffer@xxxxxxxx>
Subject: Re: [Xen-devel] Question on pci-passthrough and event delivery
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Thu, 8 Apr 2010 10:03:16 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, mark.hurenkamp@xxxxxxxxx, thomas@xxxxxxxxxxxxx
Delivery-date: Thu, 08 Apr 2010 07:05:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BBD9843.60903@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4BBD9843.60903@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.19 (2009-01-05)
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.


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

<Prev in Thread] Current Thread [Next in Thread>