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] Problem getting PCI devices hidden from Dom0

To: "Grahame Kelly" <grahame@xxxxxxxxxxxxxx>, "xen-users-request@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Problem getting PCI devices hidden from Dom0
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Sat, 1 Aug 2009 14:32:16 +1000
Cc:
Delivery-date: Fri, 31 Jul 2009 21:33:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <11576442-5471-48A6-BB36-A95CC776A750@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: <11576442-5471-48A6-BB36-A95CC776A750@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoSWVd0P+osob4FS4+FXILOcUmsrgABqeLw
Thread-topic: [Xen-users] Problem getting PCI devices hidden from Dom0
> 
> Hi All.
> 
> I have tried hiding two PCI cards from Dom0 on boot up in accordance
> with the documentation.
> 
> Xen 3.3.1_18546_16-0.1 upon openSuSE-11.1 release.
> 
> Using the following /boot/grub/menu.1st directives:
> 
> title Xen -- openSUSE 11.1 - 2.6.27.25-0.1
> root (hd0,0)
> kernel /boot/xen.gz
> module /boot/vmlinuz-2.6.27.25-0.1-xen
> root=/dev/disk/by-id/scsi-1AMCC_U15626923F6A26004196-part1
resume=/dev/
> disk/by-id/scsi-1AMCC_U15626923F6A26004196-part2
> splash=silent showopts vga=0x317
> pciback.permissive pciback.hide-(04:00.0) (06:04.0) (08:0e.0)
> module /boot/initrd-2.6.27.25-0.1-xen
> 
> after booting - if I run "lspci",  Dom0 still sees the PCI devices I
> am trying to hide exclusively for the use of DomU's.
> 
> Can anyone advise what may be the issue why this is not working?
> 

I can't answer any of your questions directly, but have you tried using
the 'unbind' virtual file in /sys ?

In theory you should be able to unbind a module from the device
(therefore making it available to pass through) even if it was bound on
boot. It works great with usb but I've never tried it with pci so it may
not work... usb drivers expect to have devices taken away from them
without warning while most pci drivers don't so there may well be bugs
that prevent it from working. Also, I've never used pci passthrough so
it may be that the device needs to be hidden at a much lower level or
something.

The USB syntax is described in http://lwn.net/Articles/143397/, the PCI
syntax shouldn't be that much different - I expect that the device name
for a pci device would be something like '0000:00:0e.0'

If you do try it and it works, please post back to the list as doing it
that way might suck a lot less than having to fiddle around with boot
scripts...

James


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

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