Received: from eggs.gnu.org ([140.186.70.92]:59446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjFKf-0003Ns-NB for qemu-devel@nongnu.org; Tue, 19 Jul 2011 14:47:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjFKa-0005Kv-Qi for qemu-devel@nongnu.org; Tue, 19 Jul 2011 14:47:49 -0400 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:36583 helo=smtp.kn-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjFKa-0005JE-7l for qemu-devel@nongnu.org; Tue, 19 Jul 2011 14:47:44 -0400 From: Juergen Lock Date: Tue, 19 Jul 2011 20:42:08 +0200 Message-ID: <20110719184208.GA78049@triton8.kn-bremen.de> References: <20110718182214.GA38329@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] qemu FreeBSD/sparc64 host - a bit of debugging List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Super Bisquit Cc: jashank.jeremy@optusnet.com.au, Nathaniel Filardo , Juergen Lock , qemu-devel@nongnu.org, Blue Swirl , nwhitehorn@FreeBSD.org, freebsd-sparc64@FreeBSD.org On Mon, Jul 18, 2011 at 10:58:58PM -0400, Super Bisquit wrote: > On Mon, Jul 18, 2011 at 2:22 PM, Juergen Lock wrote: > > > Hi! > > > > I'm the FreeBSD qemu port maintainer and don't have a sparc64 box > > myself, but Jashank Jeremy (Cc'd) now was so kind to test qemu 0.14.1 > > on a FreeBSD/sparc64 box booting a FreeBSD 8/i386 install iso using > > i386-softmmu > > > What's the difference- an honest question- between this and a normal qemu > boot? > Depends on what you mean by normal qemu boot... If you are wondering about the i386-softmmu, that's just the name of the 32bit x86 system emulation target, the executable is called qemu. So he ran something like: qemu -cdrom FreeBSD-8.2-i386-bootonly.iso -vnc ... > > and we found two things: > > > > 1. The hang people have been reporting seems to be caused by this tb: > > > > IN: > > 0x000e7a31: in $0xb3,%al > > 0x000e7a33: test %al,%al > > 0x000e7a35: jne 0xe7a31 > > > > i.e. it (the qemu bios I suppose) is waiting for x86 ioport 0xb3 > > to become zero. This port is #defined in hw/apm.c as: > > > > qemu-0.14.1/hw/apm.c:#define APM_STS_IOPORT 0xb3 > > > > but the definition seems to be used nowhere in that source file. > > Anyone have an idea why this port is never zero on sparc64 hosts > > but seems to be on others? (endian issue? uninitialized variable?) > > > Have you asked Whitehorn what it my be? > No but I can Cc him... Actually I can Cc the freebsd-sparc64 list too. > > > > 2. Booting the same guest with -no-acpi gets further, bios and > > bootloader messages are printed until it hangs again, this > > time while handling a guest irq 8 which seems to be rtc. > > > > Is there a way of disabling the clock? If not, then would it be useful to > set the emulated cpu speed? > I don't think any of these two are possible. > > > > Maybe this is useful to some... :) > > > > Actually, it's quite useful to me. That's good to hear. :) Juergen