xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* setup_vga_pt seems can not correctly use vgabios.
@ 2013-10-28 19:23 成会明
  2013-10-28 19:45 ` Zytaruk, Kelly
  0 siblings, 1 reply; 3+ messages in thread
From: 成会明 @ 2013-10-28 19:23 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 509 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 1166 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setup_vga_pt seems can not correctly use vgabios.
  2013-10-28 19:23 setup_vga_pt seems can not correctly use vgabios 成会明
@ 2013-10-28 19:45 ` Zytaruk, Kelly
  2013-11-01 11:36   ` Youenn Gestin
  0 siblings, 1 reply; 3+ messages in thread
From: Zytaruk, Kelly @ 2013-10-28 19:45 UTC (permalink / raw)
  To: 成会明, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 960 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 5934 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setup_vga_pt seems can not correctly use vgabios.
  2013-10-28 19:45 ` Zytaruk, Kelly
@ 2013-11-01 11:36   ` Youenn Gestin
  0 siblings, 0 replies; 3+ messages in thread
From: Youenn Gestin @ 2013-11-01 11:36 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1592 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 8101 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-01 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-28 19:23 setup_vga_pt seems can not correctly use vgabios 成会明
2013-10-28 19:45 ` Zytaruk, Kelly
2013-11-01 11:36   ` Youenn Gestin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).