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: "David Stone" <unclestoner@xxxxxxxxx>
Subject: RE: [Xen-devel] Using VT-D to grant a Windows DomU access to aPCIExpress graphics card?
From: "Han, Weidong" <weidong.han@xxxxxxxxx>
Date: Mon, 10 Dec 2007 21:34:22 +0800
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 10 Dec 2007 05:35:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1a74a8410712070744p6faea30bn4339d2f6f2a86f0c@xxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acg46DkCxeyrEZ6/TuCBxFn1zpMVZQCOv9eA
Thread-topic: [Xen-devel] Using VT-D to grant a Windows DomU access to aPCIExpress graphics card?
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)

David Stone wrote:
>>>> Graphices card is special. Many tricky things need to be done, such
>>>> as frame buffer, VGA guest bios, etc. So current VT-d in Xen
>>>> doesn't support assigning graphics card yet.
>>> 
>>> I wonder if those complications (which I don't pretend to
>>> understand) would go away if the graphics card did not have to
>>> produce any output to a locally attached monitor?  My goal is not
>>> to render the Windows DomU graphics to the local monitor, but
>>> rather to just use the graphics device to do work like rendering to
>>> an off-screen buffer.  I can then do whatever I want with that
>>> buffer, such as send it over the network to another machine for
>>> display.  The Windows DomU would be running completely headless...I
>>> can RDP into it to administer it. 
>>> 
>>> Would that make it more feasible?
>>> 
>> 
>> I don't think so. Without those complications, graphics card even
>> can't work on guest. I think displaying on local monitor is the same
>> with displaying on remote machine in essence.
> 
> OK.  I wonder if you could you give me a brief description of these
> complications (why they are a problem, and what needs to be done in
> the Xen source to handle them)?
> 
> Thanks,
> Dave
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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