From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrXZz-0002BC-Mu for qemu-devel@nongnu.org; Wed, 08 Apr 2009 09:12:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrXZu-00027L-MS for qemu-devel@nongnu.org; Wed, 08 Apr 2009 09:12:34 -0400 Received: from [199.232.76.173] (port=37372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrXZu-000279-C3 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 09:12:30 -0400 Received: from rv-out-0708.google.com ([209.85.198.251]:7802) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrXZt-0002jb-OU for qemu-devel@nongnu.org; Wed, 08 Apr 2009 09:12:30 -0400 Received: by rv-out-0708.google.com with SMTP id k29so2472736rvb.2 for ; Wed, 08 Apr 2009 06:12:23 -0700 (PDT) Message-ID: <49DCA2B0.2040509@codemonkey.ws> Date: Wed, 08 Apr 2009 08:12:16 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] start qemu failed with --enable-kvm -vga std References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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, Glauber Costa 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 */ >