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] Using VT-D to grant a Windows DomU access to aPCIExpress

To: "Han, Weidong" <weidong.han@xxxxxxxxx>
Subject: Re: [Xen-devel] Using VT-D to grant a Windows DomU access to aPCIExpress graphics card?
From: "David Stone" <unclestoner@xxxxxxxxx>
Date: Wed, 12 Dec 2007 15:37:19 -0500
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 12 Dec 2007 12:37:53 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nVbJVq4WiJMQUPYBbxqNRJV+m7NKmr/qMKD2mlXPq1E=; b=AOMmBX/UKhemNXWrWSHNKzH3KRh8jX4dpoEBH4Go+1vK5YmEwIeatB6VxGDayMQpXWS9Nyt6Ee9+iZSAcjI7/P/aVeB8BAlSXwKr0wLX37TNjrk/1XNK5amEaYUlO1dRpCX4IG8UmDjjESO1u4otw4f19S9PVNrq1DadEmHB2cI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mvPK5ORibKqxe+2cq3A6Vr1LyHQymE3G6nUMv8SxGDvf9an3Z+gaqhSDpj31K6TrrazNa6Re8Q3k9jAD4mbMQgeFE3R+jQVZUi0b2KnPIWOp9K+eOXs/zgY9LyTMbFAvn5K4bTh8O8c67tGtqREWPdgYH8bv9CkypQcezllyUww=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <08DF4D958216244799FC84F3514D70F0BB25A3@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/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>
References: <1a74a8410712061118h538b4a08wca216c1ec1447078@xxxxxxxxxxxxxx> <08DF4D958216244799FC84F3514D70F0BB2587@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1a74a8410712070555k78e5a887se3a8f3db1cecff60@xxxxxxxxxxxxxx> <08DF4D958216244799FC84F3514D70F0BB2594@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1a74a8410712070744p6faea30bn4339d2f6f2a86f0c@xxxxxxxxxxxxxx> <08DF4D958216244799FC84F3514D70F0BB25A3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> Graphics card assignment is complex, and not easy to implement. I am not
> an expert on it, I can tell you some things I know.
> By default, cirrus VGA is emulated for guest. If using VT-d to directly
> assign graphics card to guest, first should remove some cirrus VGA
> stuffs. It should need 1:1 mapping of frame buffer, VGA bios and VGA
> standard I/O ports, and permit directly access right to them. In
> addition, you may also need replace guest int10 and int42 handlers with
> host handlers. At last, if graphics card's memory is close to or bigger
> than 256M, should enlarge guest e820 mmio size, because current guest
> mmio size is 256M.
>
> Randy (Weidong)

Hmm...why can't I just leave the Cirrus emulated card as it is?  The
Windows DomU would continue to see it and us it as the primary display
device.  I've already verified that I can hide the real graphics card
from Dom0 and this works fine...there is not output from Dom0 or any
DomU of course, but can connect to DomU via the serial port or ssh,
and I can connect to Windows DomU via RDP.

The idea is that the real PCI Express graphics card that is passed
through to Windows DomU would appear to the Windows OS as a
_secondary_ display display device.  If one has a bare-metal OS with
two graphics adapters, I assume only one of them (the "primary") is
responsible for stuff like the VGA BIOS?   I just want to write
Direct3D code to cause the physical graphics card to render to an
_off-screen_ surface...not to a framebuffer.  I could then scrape the
rendered bitmaps and do whatever I wanted with them.

Thanks,
Dave

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