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-users

Re: [Xen-users] Xen 3.3.0 PCI passthrough with pciback.hide

To: "Luis F Urrea" <lfurrea@xxxxxxxxx>
Subject: Re: [Xen-users] Xen 3.3.0 PCI passthrough with pciback.hide
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Wed, 3 Dec 2008 22:59:04 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 03 Dec 2008 20:00:06 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=KTU3NORNxxr+DsS9quDZ0hm9LefXfP9N9kXKcKqpTkE=; b=gNltqsaqYjdoJB01lMeawdRazX3wxopBiPtFvc0BLbSYMZMY9DyS2wOxgwvUXqIDUa EOJIi22W4xqCC5hTl2mfVTSFWhXuD8WNMn5P2wV66tKUDP+cpWJBQPIwjDhdmbe/r9l5 rXv5pWS8xJsaKPdW3nrSp5h7het8ZDaFiIlTU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=Tt6PwlYP0nSZWf6p/Tb9616cg2+8nHOAYmQZCW26e00b4DLlk9T55N+PNX13cVuBhR EHcEVOenORB3aC5EsxBP6oxtdd6a1FqUfCYJI4vh9ra2s09XZNJf8uZrSMHpCB9b8+kr sFTUbCvlToPHopsrt8nH4lmxFyaaYANzwDY9s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f120f4c80812031947g78b2e701i5871f72b3582ec0f@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f120f4c80812031947g78b2e701i5871f72b3582ec0f@xxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Dec 3, 2008 at 10:47 PM, Luis F Urrea <lfurrea@xxxxxxxxx> wrote:
> Hi all,
>
> I am trying to configure a Dom U to act as a firewall and therefore I need
> to pass one of the two ethernet cards to the Dom-U.
>
> I configured the Xen kernel to build pciback as a module and I am passing
> the hide option via boot parameters.
>
> I boot the pv machine via pygrub and I am able to see the ethernet device in
> Dom U as follows:
>
> Dom-U#lspci
> 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5722 Gigabit
> Ethernet PCI Express
>
> When I load the driver the eth device comes up:
>
> eth1: Tigon3 [partno(BCM95722) rev a200 PHY(5722/5756)] (PCI Express)
> 10/100/1000Base-T Ethernet 00:1e:c9:53:53:a3
> eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1]
> eth1: dma_rwctrl[76180000] dma_mask[64-bit]
>
> However when I try to bring up the interface using
>
> #ifup eth1
>
> I get the following:
>
> get owner for dev 0 get 1
> error enable msi for guest 1 status fffffff0
> SIOCSIFFLAGS: Function not implemented
> Sending on   LPF/eth1/00:1e:c9:53:53:a3
> Sending on   Socket/fallback
> receive_packet failed on eth1: Network is down
> DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
> send_packet: Network is down
>
> Dom-U dmesg shows the following:
> pci frontend enable msi failed for dev 2:0
> pci frontend enable msi failed for dev 2:0
> pci frontend enable msi failed for dev 2:0
> pci frontend enable msi failed for dev 2:0
> pci frontend enable msi failed for dev 2:0
> pci frontend enable msi failed for dev 2:0
>
> Dom-0 dmesg shows:
> PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
> ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNK2] -> GSI 19 (level, low) ->
> IRQ 16
> PCI: Setting latency timer of device 0000:02:00.0 to 64
> pciback 0000:02:00.0: Driver tried to write to a read-only configuration
> space field at offset 0x68, size 4. This may be harmless, but if you have
> problems with your device:
> 1) see permissive attribute in sysfs

did you try to add pciback.permissive on the same line as the pciback.hide
line in your grub config?

> 2) report problems to the xen-devel mailing list along with details of your
> device obtained from lspci.

If that doesn't work, then following Step number 2 may be the
right approach

Cheers,
Todd

-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

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

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