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>
Subject: Re: [Xen-users] Problem getting PCI devices hidden from Dom0
From: Jeroen Groenewegen van der Weyden <groen692@xxxxxxxxx>
Date: Sat, 01 Aug 2009 18:15:23 +0200
Authentication-results: MX-IN-02.forthnet.gr smtp.mail=groen692@xxxxxxxxx; spf=neutral
Authentication-results: MX-IN-02.forthnet.gr header.from=groen692@xxxxxxxxx; sender-id=neutral
Cc: "xen-users-request@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 01 Aug 2009 09:16:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D016DDFB8@trantor>
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> <AEC6C66638C05B468B556EA548C1A77D016DDFB8@trantor>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)
Hi,
 
 in my opinion the problem starts here
 
 
 (XEN) I/O virtualisation disabled
 
 1) check the bios of vt-d is enabled
 2) the grub boot sequence
 3) pciback compiled into the kernel.

 
 mfg,
 
 jeroen


James Harper wrote:
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

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.38/2274 - Release Date: 07/31/09 05:58:00

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Problem getting PCI devices hidden from Dom0, Jeroen Groenewegen van der Weyden <=