Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVgzE-00006T-9m for qemu-devel@nongnu.org; Wed, 20 Aug 2008 02:16:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVgzC-000069-HJ for qemu-devel@nongnu.org; Wed, 20 Aug 2008 02:16:02 -0400 Received: from [199.232.76.173] (port=52922 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVgzC-000063-AZ for qemu-devel@nongnu.org; Wed, 20 Aug 2008 02:16:02 -0400 Received: from hall.aurel32.net ([91.121.138.14]:46032) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVgzC-0006Bs-7S for qemu-devel@nongnu.org; Wed, 20 Aug 2008 02:16:02 -0400 Received: from [80.187.214.109] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KVgz9-00082a-TB for qemu-devel@nongnu.org; Wed, 20 Aug 2008 08:16:00 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1KVgz8-0004iX-IP for qemu-devel@nongnu.org; Wed, 20 Aug 2008 08:15:58 +0200 Date: Wed, 20 Aug 2008 08:15:58 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] Bug with TARGET_PHYS_ADDR_SPACE_BITS Message-ID: <20080820061558.GB17273@volta.aurel32.net> References: <48AB070A.1040104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <48AB070A.1040104@redhat.com> 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 On Tue, Aug 19, 2008 at 07:46:50PM +0200, Chris Lalancette wrote: > Hello, > oVirt is currently using straight x86_64 qemu emulation for certain parts > of the architecture (we mostly use KVM, but need to use full emulation for a > couple of parts). We recently upgraded our userspace package to kvm-72, but > found that we could not PXE boot guests when we were doing full emulation (under > kvm, we could PXE boot just fine). We also tried using qemu SVN tip, with > similar results. We ended up doing a bisect, and tracked down the problem to > this commit (from the kvm repo, but pulled from qemu): > > http://git.kernel.org/?p=linux/kernel/git/amit/kvm-userspace.git;a=commit;h=468f7507339a5236bff8ab339eb0c1b019a95fda > > The important changes in there in terms of this bug revolves around > TARGET_PHYS_ADDR_SPACE_BITS in exec.c. If I change that back to 32 (what it was > before this patch for x86_64), the PXE boot succeeds. Also, if I remove > TARGET_PHYS_ADDR_SPACE_BITS > 32 conditional code in phys_page_find_alloc(), but > leave TARGET_PHYS_ADDR_SPACE_BITS as 42, the PXE boot also works. I can't claim > to understand the conditional code I've compiled out, so I'm not sure where the > bug would be. Does anyone have an idea what the problem might be? > Are you using qemu or qemu-system-x86_64? Could you also build qemu with --disable-kqemu? It possible that kqemu support is causing this problem, as it is limited to 32 bits. I have tested support for PAE with various guests, including memtest86, and haven't encountered any problem. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net