Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0gWV-0002F3-SG for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:07:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0gWR-00028E-5e for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:07:03 -0400 Received: from [199.232.76.173] (port=36879 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0gWQ-000280-WA for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:06:59 -0400 Received: from mail-fx0-f211.google.com ([209.85.220.211]:64639) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0gWQ-0005VM-H7 for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:06:58 -0400 Received: by fxm7 with SMTP id 7so7692977fxm.34 for ; Wed, 21 Oct 2009 12:06:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4ADEE5470200009900027E0E@collaborate.seakr.com> References: <4ADEE5470200009900027E0E@collaborate.seakr.com> From: Blue Swirl Date: Wed, 21 Oct 2009 22:06:37 +0300 Message-ID: Subject: Re: [Qemu-devel] sparc64-softmmu Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nick Couchman Cc: qemu-devel@nongnu.org On Wed, Oct 21, 2009 at 7:41 PM, Nick Couchman wr= ote: > I have a couple of questions regarding sparc64 softmmu support in Qemu: > - Is this part of Qemu being actively developed? =C2=A0Judging by the com= mits to the git repo, it doesn't look like there's a whole lot of focus on = development of this right now? It's more active architecture than many others, but of course x86 is the ki= ng. > - Does anyone know what's left to be done for the sparc64 target to get i= t to boot Solaris correctly? =C2=A0Is there any sort of a bug repository fo= r Qemu that might list these things? =C2=A0Or maybe someone has a list in t= heir head? There are several areas which need improvement. Sparc64 CPU emulation seems to be mostly OK. Sun4u devices are a bit bogus and sun4v devices do not exist yet. The Forth side of OpenBIOS is buggy, but we don't have enough Forth experts. > - As has already been mentioned on this list, Sun has released the Open B= oot PROM code (at least the sun4v version of it) under the BSD and GPL lice= nses. =C2=A0What would it take to get Qemu to use the OBP code instead of O= penBIOS? =C2=A0Looks like the OBP output isn't really an executable, and it= seems like sparc64-softmmu will only load Sparc ELF binaries for the BIOS. The hypervisor code below OBP is targeting Sun's Legion simulator, not ours or even native host. For Solaris/Sparc64 emulation, there is more than one way: - sparc64-softmmu/sun4u + OpenBIOS (default stack): problems described abov= e - sparc64-softmmu/sun4v + hypervisor + OBP: need to port the hypervisor to QEMU, maybe fix/implement a few devices - sparc64-solaris-user or sparc32plus-solaris-user (I sent a first cut patch to list some time ago): the licenses are incompatible and the user emulator would not be as useful as full system emulator.