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] how to PCI-passthrough 1 card to a DomU when another @ D

To: "Konrad Rzeszutek Wilk" <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] how to PCI-passthrough 1 card to a DomU when another @ Dom0 uses the same driver?
From: "dev001" <pgngw+dev001+xen-users@xxxxxx>
Date: Wed, 02 Feb 2011 13:43:51 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Feb 2011 13:45:39 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:from:to:cc:mime-version:content-transfer-encoding:content-type:references:subject:in-reply-to:reply-to:date; s=smtpout; bh=ZaAxS9XlPVNFrqibrRmwHMQAuOE=; b=OhDEbBl0tXfQ8Of1jX/SsLpFTxxTH5afRuoz9GF+jVll6HuRiD0wZyNwZWZZH/0yd+4GjPHuH6QkNnGX/w81xarPH54og0nHe+n1X3XmTyX1EIpEpR/gXZnKGXTM2Ce6Nz7N3unya0eaPA92q3LuXWIhTLy7/5YN/wIHVU5wqNU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110202202705.GD19684@xxxxxxxxxxxx>
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: <1296623011.3053.1418495679@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110202202705.GD19684@xxxxxxxxxxxx>
Reply-to: pgngw+dev001+xen-users@xxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
hi,

On Wed, 02 Feb 2011 15:27 -0500, "Konrad Rzeszutek Wilk"
<konrad.wilk@xxxxxxxxxx> wrote:
> > cat /etc/init.d/boot.local
> >         modprobe pciback hide='(02:00.0)(03.00.0)'
> 
> Hmm, the 03.00 is incorrect. Should be 03:00.0

good catch!  yes, a typo.  and it'd been corrected.  no change in
observed behavior, tho.

> So if you look in /sys/pci .. something for 02:00.0 is there any driver
> that is using it? Or is it attached ot pciback?

i'm honestly not sure what to check, here.   what, specifically, am i
looking for?

> > i suspect this has to do with the driver not being unloadable at the
> > time of device seizure, as it's in use.
> 
> Well, the pciback.hide=(..) during bootup should have taken care of that.
> 
> Oh, unless the pciback is a _module_ at which point it would not do it.

on opensuse, iiuc it is a module

grep CONFIG_XEN_PCIDEV_BACKEND /boot/config-2.6.34.8-7-xen 
 CONFIG_XEN_PCIDEV_BACKEND=m      <--------------------
 CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
 # CONFIG_XEN_PCIDEV_BACKEND_PASS is not set
 # CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
 # CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set

> Did you follow the rules for doing it detailed in the VT-d howto? Just
> use the pciback instead of pci-stub in it.

i'm a bit confused.  on VT-d howto, it says,

Binding Devices to pciback

  In order to pass-through devices using VT-d then need to be bound to
  pciback to ensure that they are not bound to another dom0 driver and
  this free for use by pass-through. It is possible to view this as
  hiding the device from Dom0.

...
Binding at Run-Time

As discussed in Assign_hardware_to_DomU_with_PCIBack_as_module, it is
possible to bind a device to pciback after dom0 has booted, even if it
has been bound to another device in the mean time. This method can be
used both when pciback is statically compiled into the dom0 kernel and
when it has been compiled as a module.

Binding at Module Insertion Time

As also discussed in Assign_hardware_to_DomU_with_PCIBack_as_module, it
is possible to bind a device to pciback at the time that the pciback
module is inserted. This technique is only useful if pciback has been
compiled as a module. 

and, since it's compiled as a module, at

  
http://wiki.xensource.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_module

i "followed the rules" for method 2 ...

is that not correct?

> What happens if you 'rmmod sky2' or blacklist the sky2 driver?

perhaps i'm being thick -- what's that tell us?  i've already shown that
replacing the 'first' r8169-based card with something else allows BOTH
to-be-passed-thru pci-cards to be seized correctly.  which seems to me
to indicate that i'm set up correctly.

or no?


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