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] [PATCH 1/2] graphics passthrough with VT-d

To: "Han, Weidong" <weidong.han@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1/2] graphics passthrough with VT-d
From: Jean Guyader <jean.guyader@xxxxxxxxx>
Date: Wed, 16 Sep 2009 09:33:57 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, "Lin, Ben Y" <ben.y.lin@xxxxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, Jean Guyader <jean.guyader@xxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "bengheng@xxxxxxxxxxxxxx" <bengheng@xxxxxxxxxxxxxx>
Delivery-date: Wed, 16 Sep 2009 01:35:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YCj5blcT2h2T53QYsx6ptrHobddukkg+W6mVSdImgyE=; b=gY8CiD1pRgyu0YnI5HGChrnzDOry2oAarykmK6M0YgeAAN2md4OVpXYWCdS6etD5je mC52Y0T1Gdrs3RqcV9NGpOK1mRT3tf7mc57v5DigACG3wIR/CAx+tIcxKVltPme+fcQ+ tBRG5kdGpGvMi6ftwDr+oYtkcBmpm6o/zMe54=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HgGS1gj3dmyJqwZCT+1Hf6SRVUuM/g/0tS+fKY62Da+miTJlGcth0EBcRF35QU9NdY EmeP0TUwIuGnEBeg7cwftcoXt/ks8SwFk2wZnwaFRPU7dpVNlx8xfqJoImA8tXcKU2qn 1MMq9PI/zSrBvN3trHXsj1/mMaDI/Vc0X7H2g=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <715D42877B251141A38726ABF5CABF2C054B68971B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <715D42877B251141A38726ABF5CABF2C054B533682@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20090828081232.GA14065@xxxxxxxxxx> <alpine.DEB.2.00.0909111640210.2687@kaball-desktop> <715D42877B251141A38726ABF5CABF2C054B68971B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
2009/9/16 Han, Weidong <weidong.han@xxxxxxxxx>:
> Stefano Stabellini wrote:
>> On Fri, 28 Aug 2009, Jean Guyader wrote:
>>> On Fri, Aug 28, 2009 at 03:54:05AM -0400, Han, Weidong wrote:
>>>> This patch supports basic gfx passthrough on xen side:
>>>>   - retrieves VGA bios from host VGA BIOS address (0xC0000), then
>>>> load it to guest VGA BIOS address (This is the same with XCI).
>>>>   - Enlarge guest MMIO range to contain gfx card's large memory
>>>>   - add a config option 'gfx_passthru' for gfx passthrough
>>>>
>>>> Signed-off-by: Ben Lin <ben.y.lin@xxxxxxxxx>
>>>> Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
>>>
>>> Hi,
>>>
>>> First thanks for taking the time to upstream those patch that will
>>> help a lot.
>>>
>>> I think the patch will be let intrusive if we could do all
>>> that bios mapping + copying inside qemu so we don't need to
>>> modify the xc_hvm_build function.
>>>
>>> Qemu starts before the bios so that should be doable.
>>
>> The problem with letting qemu do the mapping is that it is not going
>> to work with stubdoms, while using a libxc function should work OK as
>> long as it is called by xend, as in this case.
>
> Currently stubdom doesn't support VT-d. So letting qemu do the mapping is 
> much cleaner.
>

I remember I tried graphic pass through a while ago with stubdom and
it did work.

Jean

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