ia64/xen-unstable

changeset 16222:ffc17d35d636

vt-d: add a vt-d howto setup document

docs/misc/vtd.txt is a vt-d how-to document that should answer
questions about how to use vt-d with latest Xen.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir@xensource.com>
date Thu Oct 25 09:27:00 2007 +0100 (2007-10-25)
parents beb81ee16009
children 0f86492f1a8c
files docs/misc/vtd.txt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docs/misc/vtd.txt	Thu Oct 25 09:27:00 2007 +0100
     1.3 @@ -0,0 +1,50 @@
     1.4 +Title   : How to do PCI Passthrough with VT-d
     1.5 +Authors : Allen Kay    <allen.m.kay@intel.com>
     1.6 +          Weidong Han  <weidong.han@intel.com>
     1.7 +Created : October-24-2007
     1.8 +Updated : October-24-2007
     1.9 +
    1.10 +How to turn on VT-d in Xen
    1.11 +--------------------------
    1.12 +
    1.13 +1 ) cd xen-unstable.hg
    1.14 +2 ) make install
    1.15 +3 ) make linux-2.6-xen-config CONFIGMODE=menuconfig
    1.16 +4 ) change XEN->"PCI-device backend driver" from "M" to "*".
    1.17 +5 ) make linux-2.6-xen-build
    1.18 +6 ) make linux-2.6-xen-install
    1.19 +7 ) depmod 2.6.18.8-xen
    1.20 +8 ) mkinitrd -v -f --with=ahci --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18-xen.img 2.6.18.8-xen
    1.21 +9 ) cp initrd-2.6.18-xen.img /boot
    1.22 +10) lspci - select the PCI BDF you want to assign to guest OS
    1.23 +11) "hide" pci device from dom0 as following sample grub entry:
    1.24 +
    1.25 +title Xen-Fedora Core (2.6.18-xen)
    1.26 +        root (hd0,0)
    1.27 +        kernel /boot/xen.gz com1=115200,8n1 console=com1 vtd=1
    1.28 +        module /boot/vmlinuz-2.6.18.8-xen root=LABEL=/ ro console=tty0 console=ttyS0,115200,8n1 pciback.hide=(01:00.0)(03:00.0) pciback.verbose_request=1 apic=debug maxcpus=1
    1.29 +        module /boot/initrd-2.6.18-xen.img
    1.30 +
    1.31 +12) reboot system
    1.32 +13) add "pci" line in /etc/xen/hvm.conf for to assigned devices
    1.33 +        pci = [ '01:00.0', '03:00.0' ]
    1.34 +15) start hvm guest and use "lspci" to see the passthru device and
    1.35 +    "ifconfig" to see if IP address has been assigned to NIC devices.
    1.36 +
    1.37 +
    1.38 +VT-d Enabled Systems
    1.39 +--------------------
    1.40 +
    1.41 +1) For VT-d enabling work on Xen, we have been using development
    1.42 +systems using following Intel motherboards:
    1.43 +    - DQ35MP
    1.44 +    - DQ35JO
    1.45 +
    1.46 +2) As far as we know, following OEM systems also has vt-d enabled.
    1.47 +Feel free to add others as they become available.
    1.48 +
    1.49 +- Dell: Optiplex 755
    1.50 +http://www.dell.com/content/products/category.aspx/optix?c=us&cs=555&l=en&s=biz
    1.51 +
    1.52 +- HP Compaq:  DC7800
    1.53 +http://h10010.www1.hp.com/wwpc/us/en/en/WF04a/12454-12454-64287-321860-3328898.html