From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrOCp-0003vd-Ji for qemu-devel@nongnu.org; Tue, 07 Apr 2009 23:12:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrOCk-0003sG-Ss for qemu-devel@nongnu.org; Tue, 07 Apr 2009 23:12:03 -0400 Received: from [199.232.76.173] (port=33527 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrOCk-0003sD-Mi for qemu-devel@nongnu.org; Tue, 07 Apr 2009 23:11:58 -0400 Received: from wf-out-1314.google.com ([209.85.200.170]:49184) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrOCk-0006IY-AD for qemu-devel@nongnu.org; Tue, 07 Apr 2009 23:11:58 -0400 Received: by wf-out-1314.google.com with SMTP id 29so3093831wff.4 for ; Tue, 07 Apr 2009 20:11:56 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 8 Apr 2009 11:11:56 +0800 Message-ID: From: Peng Huang Content-Type: multipart/alternative; boundary=000e0cd32df07534590467027ef5 Subject: [Qemu-devel] start qemu failed with --enable-kvm -vga std Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --000e0cd32df07534590467027ef5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 */ --000e0cd32df07534590467027ef5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

The HEAD version qemu can not execute a VM with --enable-kvm -vg= a std or -vga vmware on kernel 2.6.29.1-46.fc11.x86_64. I found it is becau= se 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
=C2=A0

diff --git a/hw/pc.c b/hw/pc.c<= br>index f9cfd1f..7775c7b 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -8= 76,7 +876,7 @@ vga_bios_error:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 exit(1);
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 }
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Ro= und up vga bios size to the next 2k boundary */
-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 vga_bios_size =3D (vga_bios_size + 20= 47) & ~2047;
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 vga_bios_size =3D= (vga_bios_size + 4095) & ~4095;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 option_rom_start =3D 0xc0000 + vga_bios_size;
=C2=A0
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* setup basic memory access */<= br>
--000e0cd32df07534590467027ef5--