qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] start qemu failed with --enable-kvm -vga std


From: Anthony Liguori
Subject: Re: [Qemu-devel] start qemu failed with --enable-kvm -vga std
Date: Wed, 08 Apr 2009 08:12:16 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Peng Huang wrote:
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.

Glauber came up with a similar patch for kvm-userspace and is currently attempting to root cause the issue.

Regards,

Anthony Liguori

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 */






reply via email to

[Prev in Thread] Current Thread [Next in Thread]