qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] start qemu failed with --enable-kvm -vga std
@ 2009-04-08  3:11 Peng Huang
  2009-04-08 12:27 ` Paul Brook
  2009-04-08 13:12 ` Anthony Liguori
  0 siblings, 2 replies; 20+ messages in thread
From: Peng Huang @ 2009-04-08  3:11 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

Hi,

The HEAD version qemu can not execute a VM with --enable-kvm -vga std or
-vga vmware on kernel 2.6.29.1-46.fc11.x86_64. I found it is because of qemu
call cpu_register_physical_memory with a wrong size. Below patch can fix it
on my box. Please test it.

Regards,
Peng Huang


diff --git a/hw/pc.c b/hw/pc.c
index f9cfd1f..7775c7b 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -876,7 +876,7 @@ vga_bios_error:
             exit(1);
         }
        /* Round up vga bios size to the next 2k boundary */
-       vga_bios_size = (vga_bios_size + 2047) & ~2047;
+       vga_bios_size = (vga_bios_size + 4095) & ~4095;
        option_rom_start = 0xc0000 + vga_bios_size;

         /* setup basic memory access */

[-- Attachment #2: Type: text/html, Size: 847 bytes --]

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

end of thread, other threads:[~2009-04-08 19:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-08  3:11 [Qemu-devel] start qemu failed with --enable-kvm -vga std Peng Huang
2009-04-08 12:27 ` Paul Brook
2009-04-08 13:12 ` Anthony Liguori
2009-04-08 13:25   ` Glauber Costa
2009-04-08 16:34     ` [Qemu-devel] " Jan Kiszka
2009-04-08 16:41       ` Glauber Costa
2009-04-08 17:02         ` Jan Kiszka
2009-04-08 17:06           ` Glauber Costa
2009-04-08 17:20             ` Jan Kiszka
2009-04-08 17:23               ` Glauber Costa
2009-04-08 17:25               ` Glauber Costa
2009-04-08 17:39                 ` M. Warner Losh
2009-04-08 17:44                   ` Glauber Costa
2009-04-08 17:57                     ` M. Warner Losh
2009-04-08 17:47                   ` Paul Brook
2009-04-08 18:07                     ` Glauber Costa
2009-04-08 18:58                 ` Anthony Liguori
2009-04-08 18:57               ` Anthony Liguori
2009-04-08 19:03                 ` Glauber Costa
2009-04-08 17:31       ` Paul Brook

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).