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] Pci export configuration

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Pci export configuration
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Sat, 8 Dec 2007 19:33:06 +0000
Cc: Stephan Seitz <s.seitz@xxxxxxxxxxxx>, Julien Reveillet <j.reveillet@xxxxxxxxxxxxxxxxxxxxxx>, Georg Fleckenstein <georg.fleckenstein@xxxxxx>
Delivery-date: Sat, 08 Dec 2007 11:34:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47551EB9.3020304@xxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <474ECF05.4010004@xxxxxxxxxxxxxxxxxxxxxx> <47551EB9.3020304@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
Hi,

> I'm still having problems to automatically give a pci device to a DomU.
>
> I put the "pciback.hide=(00:1d.0)(04:00.0)" argument to grub.
>
> While passing the device id to the "xm" command works it do not in the
> configuration file with the line : pci = ['00:1d.1','04:00.0']
>
> Here is the result of the command :
>
> xen:~# xm create vm.fp
> Using config file "/etc/xen/vm.fp".
> Error: pci: PCI Backend does not own device 0000:00:1d.1
> See the pciback.hide kernel command-line parameter or
> bind your slot/device to the PCI backend using sysfs

Can you post the output of "dmesg" in dom0?  There should be messages in there 
about the PCI backend grabbing that device...

Try taking the dmesg after you've tried to manually bind the device to see if 
that generated any messages.

> I tried with "echo -n ..." but i got an error message too :
>
> xen:~# echo -n 0000:00:1d.1 > /sys/bus/pci/drivers/pciback/new_slot
> xen:~# echo -n 0000:00:1d.1 > /sys/bus/pci/drivers/pciback/bind
> -bash: echo: write error: Aucun peripherique de ce type
>
> Which means "no type of this device".

A thought...  is it possible your pciback is compiled as a module?  If it is, 
it probably can't "steal" the devices you've requested it to hide.  In this 
case, you'll need to manually "unbind" the devices from their current 
drivers...

Do an ls -l "/sys/bus/pci/devices/0000:00:1d.1"

There's probably a symlink in there called "driver", right?

If you do an

echo -n "0000:00:1d.1" > "/sys/bus/pci/devices/0000:00:1d.1/driver/unbind"

Does that succeed?  Are you able to manually add the device to pciback now?

> Any help would be great.

Hope that helps,
Cheers,
Mark

> Thanks.
>
> Julien.
>
> Julien Reveillet a écrit :
> > Hi all,
> >
> > This has, i'm sure, been told a lot of time but i haven't found any
> > things to solve my problems.
> > Here is it:
> >
> > I wan't to export a usb port on DomU (CentOS 5) from my Dom0 (Debian
> > Etch).
> >
> > I have only succeded with the pci export but with the next command:
> > "xm create machine pci=00:1d.0"
> >
> > With having many differents syntaxes in the machine configuration file
> > would not work for me.
> >
> > Does anybody know how to do it in the conf file?
> >
> > Or perhaps with a usb export (it would be what i want finally)?
> >
> > Xen version : 3.0.3-1 from Debian stable packages
> >
> > Thanks.
> >
> > Regards.
> > Julien.
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

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