* [PATCH] hvmloader: fix vgatype detecting issue
@ 2010-02-19 8:50 Noboru Iwamatsu
0 siblings, 0 replies; only message in thread
From: Noboru Iwamatsu @ 2010-02-19 8:50 UTC (permalink / raw)
To: xen-devel; +Cc: weidong.han
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
Hi,
When graphics card is assigned to a guest as a secondary VGA,
without gfx_passthru and emulated VGA is the primary VGA,
hvmloader misreads gfx_passthru is specified if VGA device is
found after the emulated VGA.
This patch fix this issue. If emulated VGA is found, hvmloader
preserves it and loads vgabios of the emulated VGA.
Noboru.
Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
[-- Attachment #2: hvmloader-vga-pt-fix.patch --]
[-- Type: text/plain, Size: 744 bytes --]
diff -r e99d20837ac0 -r d03433d515f3 tools/firmware/hvmloader/hvmloader.c
--- a/tools/firmware/hvmloader/hvmloader.c Tue Feb 16 18:11:17 2010 +0000
+++ b/tools/firmware/hvmloader/hvmloader.c Wed Feb 17 13:44:32 2010 +0900
@@ -210,11 +210,12 @@
switch ( class )
{
case 0x0300:
+ /* If emulated VGA is found, preserve it as primary VGA. */
if ( (vendor_id == 0x1234) && (device_id == 0x1111) )
virtual_vga = VGA_std;
else if ( (vendor_id == 0x1013) && (device_id == 0xb8) )
virtual_vga = VGA_cirrus;
- else
+ else if ( virtual_vga == VGA_none )
virtual_vga = VGA_pt;
break;
case 0x0680:
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-19 8:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 8:50 [PATCH] hvmloader: fix vgatype detecting issue Noboru Iwamatsu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.