All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [VTD] Update vtd.txt
@ 2008-08-06  9:29 Han, Weidong
  2008-08-06 12:27 ` Ross Philipson
  0 siblings, 1 reply; 12+ messages in thread
From: Han, Weidong @ 2008-08-06  9:29 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

Add "iommu=1" option in grub, due to VT-d is not enabled by default.

In additoin, describes how to enable MSI/MSI-x for assigned devices. 

Signed-off-by: Weidong Han <weidong.han@intel.com>

[-- Attachment #2: vtd-doc.patch --]
[-- Type: application/octet-stream, Size: 1278 bytes --]

diff -r cc676edf8b97 docs/misc/vtd.txt
--- a/docs/misc/vtd.txt	Wed Aug 06 10:43:07 2008 +0800
+++ b/docs/misc/vtd.txt	Wed Aug 06 17:27:34 2008 +0800
@@ -2,7 +2,7 @@ Authors : Allen Kay    <allen.m.kay@inte
 Authors : Allen Kay    <allen.m.kay@intel.com>
           Weidong Han  <weidong.han@intel.com>
 Created : October-24-2007
-Updated : May-07-2008
+Updated : August-06-2008
 
 How to turn on VT-d in Xen
 --------------------------
@@ -21,7 +21,7 @@ 11) "hide" pci device from dom0 as follo
 
 title Xen-Fedora Core (2.6.18-xen)
         root (hd0,0)
-        kernel /boot/xen.gz com1=115200,8n1 console=com1
+        kernel /boot/xen.gz com1=115200,8n1 console=com1 iommu=1
         module /boot/vmlinuz-2.6.18.8-xen root=LABEL=/ ro xencons=ttyS console=tty0 console=ttyS0, pciback.hide=(01:00.0)(03:00.0)
         module /boot/initrd-2.6.18-xen.img
 
@@ -30,6 +30,11 @@ 13) add "pci" line in /etc/xen/hvm.conf 
         pci = [ '01:00.0', '03:00.0' ]
 15) start hvm guest and use "lspci" to see the passthru device and
     "ifconfig" to see if IP address has been assigned to NIC devices.
+
+
+Enable MSI/MSI-x for assigned devices
+-------------------------------------
+Add "msi=1" option in kernel line of host grub.
 
 
 Caveat on Conventional PCI Device Passthrough

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH] [VTD] Update vtd.txt
@ 2008-05-07  8:14 Han, Weidong
  2008-05-07  8:24 ` Han, Weidong
  0 siblings, 1 reply; 12+ messages in thread
From: Han, Weidong @ 2008-05-07  8:14 UTC (permalink / raw)
  To: xen-devel; +Cc: Kay, Allen M, Zhai, Edwin

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

Update for vtd.txt: add VT-d hotplug description, remove MSI limitation
note because Xen has supported MSI, and add link of VT-d howto on xen
wiki for more information about VT-d enabled systems.

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>

[-- Attachment #2: vtd-doc.patch --]
[-- Type: application/octet-stream, Size: 3089 bytes --]

diff -r 892ae66ed82f docs/misc/vtd.txt
--- a/docs/misc/vtd.txt	Tue May 06 16:35:44 2008 +0100
+++ b/docs/misc/vtd.txt	Wed May 07 16:05:41 2008 +0800
@@ -2,7 +2,7 @@ Authors : Allen Kay    <allen.m.kay@inte
 Authors : Allen Kay    <allen.m.kay@intel.com>
           Weidong Han  <weidong.han@intel.com>
 Created : October-24-2007
-Updated : December-13-2007
+Updated : May-07-2007
 
 How to turn on VT-d in Xen
 --------------------------
@@ -22,7 +22,7 @@ title Xen-Fedora Core (2.6.18-xen)
 title Xen-Fedora Core (2.6.18-xen)
         root (hd0,0)
         kernel /boot/xen.gz com1=115200,8n1 console=com1
-        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
+        module /boot/vmlinuz-2.6.18.8-xen root=LABEL=/ ro xencons=ttyS console=tty0 console=ttyS0, pciback.hide=(01:00.0)(03:00.0)
         module /boot/initrd-2.6.18-xen.img
 
 12) reboot system
@@ -47,14 +47,39 @@ 1) Host OS: PAE, 64-bit
 1) Host OS: PAE, 64-bit
 2) Guest OS: 32-bit, PAE, 64-bit
 
-Because current Xen doesn't support MSI, for guest OS which uses MSI by default, need to add "pci=nomsi" option on its grub, e.g. RHEL5, FC6.
-
 
 Combinations Tested:
 --------------------
 
 1) 64-bit host: 32/PAE/64 Linux/XP/Win2003/Vista guests
 2) PAE host: 32/PAE Linux/XP/Win2003/Vista guests
+
+
+VTd device hotplug:
+-------------------
+ 
+2 virtual PCI slots (6~7) are reserved in HVM guest to support VTd hotplug. If you have more VTd devices, only 2 of them can support hotplug. Usage is simple:
+
+ 1. List the VTd device by dom. You can see a VTd device 0:2:0.0 is inserted in the HVM domain's PCI slot 6. '''lspci''' inside the guest should see the same.
+
+	[root@vt-vtd ~]# xm pci-list HVMDomainVtd
+	VSlt domain   bus   slot   func
+	0x6    0x0  0x02   0x00    0x0
+
+ 2. Detach the device from the guest by the physical BDF. Then HVM guest will receive a virtual PCI hot removal event to detach the physical device
+
+	[root@vt-vtd ~]# xm pci-detach HVMDomainVtd 0:2:0.0
+
+ 3. Attach a PCI device to the guest by the physical BDF and desired virtual slot(optional). Following command would insert the physical device into guest's virtual slot 7
+
+	[root@vt-vtd ~]# xm pci-attach HVMDomainVtd 0:2:0.0 7
+
+VTd hotplug usage model:
+------------------------
+
+ * For live migration: As you know, VTd device would break the live migration as physical device can't be save/restored like virtual device. With hotplug, live migration is back again. Just hot remove all the VTd devices before live migration and hot add new VTd devices on target machine after live migration.
+
+ * VTd hotplug for device switch: VTd hotplug can be used to dynamically switch physical device between different HVM guest without shutdown.
 
 
 VT-d Enabled Systems
@@ -74,3 +99,5 @@ http://www.dell.com/content/products/cat
 - HP Compaq:  DC7800
 http://h10010.www1.hp.com/wwpc/us/en/en/WF04a/12454-12454-64287-321860-3328898.html
 
+For more information, pls refer to http://wiki.xensource.com/xenwiki/VTdHowTo.
+

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-09-12  3:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06  9:29 [PATCH] [VTD] Update vtd.txt Han, Weidong
2008-08-06 12:27 ` Ross Philipson
2008-08-07  3:47   ` Cui, Dexuan
2008-09-11  1:24     ` Akio Takebe
2008-09-11  2:23       ` Han, Weidong
2008-09-11  4:14         ` Akio Takebe
2008-09-11  4:20           ` Todd Deshane
2008-09-11  5:45           ` Cui, Dexuan
2008-09-12  1:30           ` Han, Weidong
2008-09-12  3:43             ` Akio Takebe
  -- strict thread matches above, loose matches on Subject: below --
2008-05-07  8:14 Han, Weidong
2008-05-07  8:24 ` Han, Weidong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.