From: Keir Fraser Subject: Re: Re: PCI passthrough support via PV-PCI Date: Wed, 02 Jul 2008 17:01:42 +0100 Message-ID: References: <20080702142855.GM4714@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080702142855.GM4714@implementation.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , Espen Skoglund Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 2/7/08 15:28, "Samuel Thibault" 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