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-changelog

[Xen-changelog] [xen-unstable] docs: update vtd.txt for pv-ops dom0

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] docs: update vtd.txt for pv-ops dom0
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 08 Jul 2009 14:15:12 -0700
Delivery-date: Wed, 08 Jul 2009 14:15:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1246972028 -3600
# Node ID 7ce4f3675c9bc4478d71ec28a837a3bba08b5d52
# Parent  c1541cc7e9855a9bc4cb420b2e599a6c605441f1
docs: update vtd.txt for pv-ops dom0

Now VT-d works with pv-ops dom0, update vtd.txt to tell how to build
and use VT-d with pv-ops.

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>=
---
 docs/misc/vtd.txt |   43 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 41 insertions(+), 2 deletions(-)

diff -r c1541cc7e985 -r 7ce4f3675c9b docs/misc/vtd.txt
--- a/docs/misc/vtd.txt Tue Jul 07 14:06:35 2009 +0100
+++ b/docs/misc/vtd.txt Tue Jul 07 14:07:08 2009 +0100
@@ -3,11 +3,12 @@ Authors : Allen Kay    <allen.m.kay@inte
           Weidong Han  <weidong.han@xxxxxxxxx>
           Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
 Created : October-24-2007
-Updated : September-09-2008
+Updated : July-07-2009
 
 How to turn on VT-d in Xen
 --------------------------
 
+Xen with 2.6.18 dom0:
 1 ) cd xen-unstable.hg
 2 ) make install
 3 ) make linux-2.6-xen-config CONFIGMODE=menuconfig
@@ -44,6 +45,44 @@ 15) start hvm guest and use "lspci" to s
     "ifconfig" to see if IP address has been assigned to NIC devices.
 
 
+Xen with pv-ops dom0:
+1 ) cd xen-unstable.hg
+2 ) make install
+3 ) make linux-2.6-pvops-config CONFIGMODE=menuconfig
+4 ) change Bus options (PCI etc.)->"PCI Stub driver" to "*".
+5 ) make linux-2.6-pvops-build
+6 ) make linux-2.6-pvops-install
+7 ) mkinitrd -v -f --with=ahci --with=aacraid --with=sd_mod --with=scsi_mod 
initrd-2.6.30-rc3-tip.img 2.6.30-rc3-tip
+    (change 2.6.30-rc3-tip to pv-ops dom0 version when it's updated in future)
+8 ) cp initrd-2.6.30-rc3-tip.img /boot
+9 ) edit grub:
+
+title Xen-Fedora Core (pv-ops)
+        root (hd0,0)
+        kernel /boot/xen.gz console=com1,vga console=com1 com1=115200,8n1 
iommu=1
+        module /boot/vmlinuz-2.6.30-rc3-tip root=LABEL=/ ro console=hvc0 
earlyprintk=xen
+        module /boot/initrd-2.6.30-rc3-tip.img
+
+10) reboot system
+11) hide device using pci-stub (example PCI device 01:00.0):
+
+    - lspci -n
+    - locate the entry for device 01:00.0 and note down the vendor & device ID
+8086:10b9
+        ...
+        01:00.0 0200: 8086:10b9 (rev 06)
+        ...
+    - then use following commands to hide it:
+        echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id
+        echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
+        echo "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/bind
+
+12) add "pci" line in /etc/xen/hvm.conf for to assigned devices
+        pci = [ '01:00.0' ]
+13) 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.
@@ -245,7 +284,7 @@ use the Virtual Function bus, device and
 use the Virtual Function bus, device and function number in the HVM
 guest configuration file and then boot the HVM guest. You also need the
 Virtual Function driver which is the normal PCI device driver in the
-HMV guest to drive the Virtual Function. The PCIe SR-IOV specification
+HVM guest to drive the Virtual Function. The PCIe SR-IOV specification
 requires that the Virtual Function can only support MSI/MSI-x if it
 uses interrupt. This means you also need to enable Xen/MSI support.
 Since the Virtual Function is dynamically allocated by Physical Function

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] docs: update vtd.txt for pv-ops dom0, Xen patchbot-unstable <=