* [Qemu-devel] [PATCH] Initialize the VMware VGA console after vga_init
@ 2008-07-08 14:15 Alexander Graf
2008-07-08 16:44 ` Rick Vernam
2008-07-11 14:25 ` Filip Navara
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Graf @ 2008-07-08 14:15 UTC (permalink / raw)
To: qemu-devel; +Cc: paul
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
Hi,
while trying the -vmwarevga switch I stumbled across this nifty problem:
vga_common_init calls vga_reset, which memsets the whole VGAState to 0.
Unfortunately the console initialization code is before that, so it gets
overwritten by 0 which breaks later on.
To circumvent this I reordered the console initialization to after the
vga_init. I am not 100% sure if that's correct, but it works so far.
Please double-check if this is the right approach.
Alex
Signed-off-by: Alexander Graf <agraf@suse.de>
[-- Attachment #2: qemu-vmwarevga.patch --]
[-- Type: text/x-patch, Size: 952 bytes --]
Index: hw/vmware_vga.c
===================================================================
--- hw/vmware_vga.c (revision 4852)
+++ hw/vmware_vga.c (working copy)
@@ -1123,16 +1123,16 @@
vmsvga_reset(s);
- s->console = graphic_console_init(ds, vmsvga_update_display,
- vmsvga_invalidate_display,
- vmsvga_screen_dump,
- vmsvga_text_update, s);
-
#ifdef EMBED_STDVGA
vga_common_init((VGAState *) s, ds,
vga_ram_base, vga_ram_offset, vga_ram_size);
vga_init((VGAState *) s);
#endif
+
+ s->console = graphic_console_init(ds, vmsvga_update_display,
+ vmsvga_invalidate_display,
+ vmsvga_screen_dump,
+ vmsvga_text_update, s);
}
static void pci_vmsvga_save(QEMUFile *f, void *opaque)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Qemu-devel] [PATCH] Initialize the VMware VGA console after vga_init
2008-07-08 14:15 [Qemu-devel] [PATCH] Initialize the VMware VGA console after vga_init Alexander Graf
@ 2008-07-08 16:44 ` Rick Vernam
2008-07-11 14:25 ` Filip Navara
1 sibling, 0 replies; 3+ messages in thread
From: Rick Vernam @ 2008-07-08 16:44 UTC (permalink / raw)
To: qemu-devel
On Tuesday 08 July 2008 09:15:47 am Alexander Graf wrote:
> Hi,
>
> while trying the -vmwarevga switch I stumbled across this nifty problem:
> vga_common_init calls vga_reset, which memsets the whole VGAState to 0.
> Unfortunately the console initialization code is before that, so it gets
> overwritten by 0 which breaks later on.
>
> To circumvent this I reordered the console initialization to after the
> vga_init. I am not 100% sure if that's correct, but it works so far.
> Please double-check if this is the right approach.
>
> Alex
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
Improvement here, as well.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Initialize the VMware VGA console after vga_init
2008-07-08 14:15 [Qemu-devel] [PATCH] Initialize the VMware VGA console after vga_init Alexander Graf
2008-07-08 16:44 ` Rick Vernam
@ 2008-07-11 14:25 ` Filip Navara
1 sibling, 0 replies; 3+ messages in thread
From: Filip Navara @ 2008-07-11 14:25 UTC (permalink / raw)
To: qemu-devel; +Cc: paul
Reviewed-by: Filip Navara <filip.navara@gmail.com>
On Tue, Jul 8, 2008 at 4:15 PM, Alexander Graf <agraf@suse.de> wrote:
> Hi,
>
> while trying the -vmwarevga switch I stumbled across this nifty problem:
> vga_common_init calls vga_reset, which memsets the whole VGAState to 0.
> Unfortunately the console initialization code is before that, so it gets
> overwritten by 0 which breaks later on.
>
> To circumvent this I reordered the console initialization to after the
> vga_init. I am not 100% sure if that's correct, but it works so far. Please
> double-check if this is the right approach.
>
> Alex
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-11 14:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 14:15 [Qemu-devel] [PATCH] Initialize the VMware VGA console after vga_init Alexander Graf
2008-07-08 16:44 ` Rick Vernam
2008-07-11 14:25 ` Filip Navara
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).