From: Youenn Gestin Subject: Re: setup_vga_pt seems can not correctly use vgabios. Date: Fri, 01 Nov 2013 12:36:04 +0100 Message-ID: <52739224.3040207@grim-is-a-geek.fr> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7239224826593699007==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============7239224826593699007== Content-Type: multipart/alternative; boundary="------------020109000601010001080604" This is a multi-part message in MIME format. --------------020109000601010001080604 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hello, I'm not a dev, but shouldn't it be possible to use one of the method described here for that (for nvidia and perhaps other brand )? : http://nouveau.freedesktop.org/wiki/DumpingVideoBios/ I used the "using /sys" method to dump mine with sysrescue cd and under my dom0, the md5sum is the same, and it was recognised by a nvidia's bios editor Regards. Le 28/10/2013 20:45, Zytaruk, Kelly a écrit : > > On Monday, October 28, 2013 3:24 PM Huiming wrote; > > >hi, > > > > > >In xen-4.3.0/tools/qemu-xen-traditional/hw/pt-graphics.c, > setup_vga_pt calls get_vgabios > > >to get vgabios of passed->through VGA adapter, but get_vgabios only > read bios from /dev/mem, > > >/dev/mem is domain 0's memory device. /dev/mem >should only contain > the vgabios of primary > > >VGA adapter of domain 0. > > > > > >So if I want to pass through secondary adapter of domain 0 to domain > U. setup_vga_pt cannot > > >correctly setup VGABIOS for >domain U. Is this correct? Any comments > are appreciated. > > > > > >thanks > > >huiming > > > > This is only a problem if you are trying to pass the Dom0 secondary > adapter through as a > > primary adapter to the DomU. In this case the DomU will have the > wrong VBios. > > > > There is no problem if you are passing the Dom0 secondary adapter > through as a secondary > > adapter to DomU. In this case the emulated (Cirrus) VBios will be > properly copied to 0xc0000. > > > > Thanks, > > Kelly > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel --------------020109000601010001080604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hello,

I'm not a dev, but shouldn't it be possible to use one of the method described here for that (for nvidia and perhaps other brand )? :

http://nouveau.freedesktop.org/wiki/DumpingVideoBios/

I used the "using /sys" method to dump mine with sysrescue cd and under my dom0, the md5sum is the same, and it was recognised by a nvidia's bios editor

Regards.

Le 28/10/2013 20:45, Zytaruk, Kelly a écrit :

On Monday, October 28, 2013 3:24 PM Huiming wrote;

>hi,

> 

>In xen-4.3.0/tools/qemu-xen-traditional/hw/pt-graphics.c,  setup_vga_pt calls get_vgabios

>to get vgabios of passed->through VGA adapter, but get_vgabios only read bios from /dev/mem,

>/dev/mem is domain 0’s memory device. /dev/mem >should only contain the vgabios of primary

>VGA adapter of domain 0.

> 

>So if I want to pass through secondary adapter of domain 0 to domain U. setup_vga_pt cannot

>correctly setup VGABIOS for >domain U. Is this correct? Any comments are appreciated.

> 

>thanks

>huiming

 

This is only a problem if you are trying to pass the Dom0 secondary adapter through as a

primary adapter to the DomU.  In this case the DomU will have the wrong VBios.

 

There is no problem if you are passing the Dom0 secondary adapter through as a secondary

adapter to DomU.  In this case the emulated (Cirrus) VBios will be properly copied to 0xc0000.

 

Thanks,

Kelly



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

--------------020109000601010001080604-- --===============7239224826593699007== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============7239224826593699007==--