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

Re: [Xen-devel] Re: PCI passthrough support via PV-PCI

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: PCI passthrough support via PV-PCI
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 02 Jul 2008 17:01:42 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Jul 2008 09:03:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080702142855.GM4714@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjcXOshKbRk0khQEd2NxQAX8io7RQ==
Thread-topic: [Xen-devel] Re: PCI passthrough support via PV-PCI
User-agent: Microsoft-Entourage/11.4.0.080122
On 2/7/08 15:28, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote:

>> When I added VT-d support for PV guests I made xend do the device
>> assignment iff the destination was a PV domain.  Is there any reason
>> why device assignment can not be performed by xend for HVM guests as
>> well?
>> 
>> Other resource assignment (IOMEM and IRQs) still seems to happen in
>> xend for HVM guests as well as for PV guest.  What other domctls does
>> ioemu need to perform?
> 
> ioemu needs to update the mappings, see the pt_iomem_map() function.

I suggest the domctls should set up access permissions (e.g., by use of
existing iomem_premission domctl). And then extend XENMEM_add_to_physmap to
allow (re-)mapping of permitted I/O ranges into pseudophysical address
space. The new passthru-specific domctls may well be ill conceived.

 -- Keir



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