I have been trying to get PCI passthru to work for a while now. I am running 3.3-unstable on Centos 5.1. I have a Intel XEON 5140 CPU, with the latest BIOS. I would like to be able to pass the SAS raid controller from dom0 to dumU. Do I need to do anything special to domU? It is running Fedora core 4. Is there any real documentation available on how to configure PCI passthru on both dom0 and dumU? thanks, -- Geoff Gibbs _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 19, 2008 at 5:55 PM, Geoff Gibbs <geoff.gibbs@gmail.com> wrote:> I have been trying to get PCI passthru to work for a while now. > I am running 3.3-unstable on Centos 5.1. I have a Intel XEON > 5140 CPU, with the latest BIOS. > > I would like to be able to pass the SAS raid controller from > dom0 to dumU. > > Do I need to do anything special to domU? It is running Fedora > core 4. > > Is there any real documentation available on how to configure > PCI passthru on both dom0 and dumU? > > thanks, > > -- > Geoff Gibbs > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >I have centos as well and the pciback is a module ( hence not part of the booting kernel). You have to use late binding with pciback. These are the steps I took to hide an ethernet card from dom0. Grub --> nothing to do here /etc/modprobe.conf: options pciback hide=(0000:03:08.0) install e100 /sbin/modprobe pciback ; /sbin/modprobe --first-time --ignore-install e100 --> only need the install line if your dom0 kernel has modules for the pci device. Now boot the domU with a line in the config file : pci = [ ''0000:03:08.0'' ] In some cases you may have to set the device to be permissive. In /sbin/lspci -vnn, get the device numbers: 03:08.0 0200: 8086:27dc (rev 01) Subsystem: 1028:01ab Flags: bus master, medium devsel, latency 64, IRQ 21 Memory at efbff000 (32-bit, non-prefetchable) [size=4K] I/O ports at dcc0 [size=64] Capabilities: [dc] Power Management version 2 And then put them in xend-pci-permissive.sxp (unconstrained_dev_ids (''8086:27dc:1028:01ab'') ) Boot the domU and it should see the device. Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>Is there any real documentation available on how to configure >PCI passthru on both dom0 and dumU? > >thanks,I have a thread I can mail you with a very sweet walkthrough if you like. Quick and dirty: 1. Deduce the device ID with lspci 2. Load pciback early with a new initrd: a. mkinitrd -f --preload=pciback /etc/initrd-$(uname -r).img $(uname -r) 3. Edit your /etc/modprobe.conf to hide the device in question: a. options pciback hide=(xx:xx.x) 4. Edit your pv config file, add: a. pci=[''0000:xx:xx.x''] Voila, jlc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I have been trying to get PCI passthru to work for a while now. > I am running 3.3-unstable on Centos 5.1. I have a Intel XEON > 5140 CPU, with the latest BIOS.I''ll assume that you''re wanting to pass through to a PV domain. HVM domains can have PCI devices assigned as long as your hardware has VT-d (most doesn''t, currently!). Passing to a PV domain should still work, regardless.> I would like to be able to pass the SAS raid controller from > dom0 to dumU.Please be aware that assigning a PCI device to a domU without having VT-d enabled makes it as privileged as dom0: a determined attacker who gains control of the domain has the ability to own an entire host. A domU with PCI passthrough isn''t given direct control over the whole machine but it can, in principle, abuse its PCI device to get it. You might also want to do a quick googling / searching of the mailing list archives to make sure nobody has had any problems with these before. Some PCI devices are unco-operative in various ways (either due to hardware or driver problems) and that can make them fail to work under PCI passthrough.> Do I need to do anything special to domU? It is running Fedora > core 4.You need to be running a suitable kernel on it. I''d suggest that you try using your dom0''s kernel (and modules), since that will definitely match the correct interfaces.> Is there any real documentation available on how to configure > PCI passthru on both dom0 and dumU?There''s some here: http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/user.html#SECTION03230000000000000000 And some more here: http://wiki.xensource.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_module Take the docs with a pinch of salt, since they sometimes get out of date. Cheers, Mark -- Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users