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

[Xen-devel] [PATCH 0/5] VT-d support for PV guests

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0/5] VT-d support for PV guests
From: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Date: Mon, 19 May 2008 21:27:22 +0100
Delivery-date: Mon, 19 May 2008 13:28:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I've added some preliminary support for VT-d for paravirtualized
guests.  This must be enabled using an 'iommu_pv' boot parameter
(disabled by default).

I've added some python bindigs to allow xend to assign PCI devices to
IOMMU for PV guests.  For HVM guests this is handled in ioemu.  Not
sure if it makes sense to handle both cases in one place.

The changes currently hook into get_page_type() in xen/arch/x86/mm.c
to map/unmap IOMMU pages when the page types change.  This might
not be the apropriate place to hook these calls.

The patches I've added are as follows:

   xen-vtd-unmap.patch --- Make the VT-d iommu_unmap_page() code
       actually do something close to useful.

   xen-ptab-dump.path --- There's no point in using 'current' when an
       IOMMU page fault is raised.  Also, add some page type
       statistics for DomPage debug output.

   xen-iommu-pv.patch --- Add support for iommu_pv_enable boot
       parameter and IOMMU assignment of PCI devices to guests.

   xen-iommu-pv-mappings.patch --- Hook iommu_{un}map_page() calls
       into various Xen locations.

   xen-pv-assign.patch --- Allow PCI devices to be assigned to IOMMU
       PV guests from xend.


While adding the PV VT-d support I also noticed that there is a lot of
duplicated and unused code dealing with VT-d.  This really needs to be
cleaned up properly.  I don't know if the original VT-d submitters
already have made plans for doing this.


        eSk

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