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: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Sun, 20 Sep 2009 17:49:14 +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>, 'Jean Guyader' <jean.guyader@xxxxxxxxx>, "'bengheng@xxxxxxxxxxxxxx'" <bengheng@xxxxxxxxxxxxxx>
Delivery-date: Sun, 20 Sep 2009 09:45:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <715D42877B251141A38726ABF5CABF2C054E31DC4B@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> <f68b66460909160133y5866d530nc419a397db4e61e@xxxxxxxxxxxxxx> <715D42877B251141A38726ABF5CABF2C054B68983C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.0909161153310.24685@kaball-desktop> <715D42877B251141A38726ABF5CABF2C054B689E76@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.0909190210400.16727@kaball-desktop> <715D42877B251141A38726ABF5CABF2C054E31DC4B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Sun, 20 Sep 2009, Han, Weidong wrote:
> The problem of changing on xc_hvm_build is need to modify hypercall API 
> (xc_hvm_build_target_mem), it's better to avoid it. If it is more intrusive 
> or harder to read vgabios in stubdom, we can change it back to modify 
> xc_hvm_build.
> 

You could leave xc_hvm_build_target_mem as it is and implement
something similar to:

+    if ( gfx_passthru )
+        sts |= setup_vga_pt(xc_handle, domid);
+    else
+        sts |= init_vgabios(xc_handle, domid, NULL, 0x800);

in pyxc_hvm_build instead so that there is no need for API changes and
the vga bios would still be read from a process in dom0 (xend in this 
case).


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