ia64/xen-unstable

view docs/misc/vtd.txt @ 16242:3d97c1c1f7c8

pv-on-hvm: fixes for unmodified drivers build and modern Linux

- The adjustments to README and overrides.mk are generic.
- The removal of explicit linux/config.h inclusion should also not
cause any issues.
- The introduction of irq_handler_t should eliminiate warnings on
2.6.19+ kernels (I didn't check they're there, but since the
request_irq prototype changed, I'm sure there's at least
one. However, as a result changes to the Linux tree are expected to
be required.
- The change setup_xen_features -> xen_setup_features follows the
naming in mainline 2.6.23 but would apparently also require changes
to the Linux tree.
- The changes SA_* -> IRQF_ and pci_module_init ->
pci_register_driver should also not cause issues.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir@xensource.com>
date Thu Oct 25 15:54:19 2007 +0100 (2007-10-25)
parents ffc17d35d636
children ca077fa59206
line source
1 Title : How to do PCI Passthrough with VT-d
2 Authors : Allen Kay <allen.m.kay@intel.com>
3 Weidong Han <weidong.han@intel.com>
4 Created : October-24-2007
5 Updated : October-24-2007
7 How to turn on VT-d in Xen
8 --------------------------
10 1 ) cd xen-unstable.hg
11 2 ) make install
12 3 ) make linux-2.6-xen-config CONFIGMODE=menuconfig
13 4 ) change XEN->"PCI-device backend driver" from "M" to "*".
14 5 ) make linux-2.6-xen-build
15 6 ) make linux-2.6-xen-install
16 7 ) depmod 2.6.18.8-xen
17 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
18 9 ) cp initrd-2.6.18-xen.img /boot
19 10) lspci - select the PCI BDF you want to assign to guest OS
20 11) "hide" pci device from dom0 as following sample grub entry:
22 title Xen-Fedora Core (2.6.18-xen)
23 root (hd0,0)
24 kernel /boot/xen.gz com1=115200,8n1 console=com1 vtd=1
25 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
26 module /boot/initrd-2.6.18-xen.img
28 12) reboot system
29 13) add "pci" line in /etc/xen/hvm.conf for to assigned devices
30 pci = [ '01:00.0', '03:00.0' ]
31 15) start hvm guest and use "lspci" to see the passthru device and
32 "ifconfig" to see if IP address has been assigned to NIC devices.
35 VT-d Enabled Systems
36 --------------------
38 1) For VT-d enabling work on Xen, we have been using development
39 systems using following Intel motherboards:
40 - DQ35MP
41 - DQ35JO
43 2) As far as we know, following OEM systems also has vt-d enabled.
44 Feel free to add others as they become available.
46 - Dell: Optiplex 755
47 http://www.dell.com/content/products/category.aspx/optix?c=us&cs=555&l=en&s=biz
49 - HP Compaq: DC7800
50 http://h10010.www1.hp.com/wwpc/us/en/en/WF04a/12454-12454-64287-321860-3328898.html