Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0gvf-0003Zy-Sh for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:33:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0gva-0003YW-Ft for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:33:03 -0400 Received: from [199.232.76.173] (port=38328 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0gva-0003YP-5Q for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:32:58 -0400 Received: from mail-fx0-f211.google.com ([209.85.220.211]:49560) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0gvZ-0001YN-Kd for qemu-devel@nongnu.org; Wed, 21 Oct 2009 15:32:57 -0400 Received: by fxm7 with SMTP id 7so7720089fxm.34 for ; Wed, 21 Oct 2009 12:32:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4ADF0A570200009900027F5D@collaborate.seakr.com> References: <4ADEE5470200009900027E0E@collaborate.seakr.com> <4ADF0A570200009900027F5D@collaborate.seakr.com> From: Blue Swirl Date: Wed, 21 Oct 2009 22:32:36 +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 10:19 PM, Nick Couchman w= rote: >>>> On 2009/10/21 at 13:06, Blue Swirl wrote: >> On Wed, Oct 21, 2009 at 7:41 PM, Nick Couchman = wrote: >>> I have a couple of questions regarding sparc64 softmmu support in Qemu: >>> - Is this part of Qemu being actively developed? =C2=A0Judging by the c= ommits 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 >> king. >> >>> - Does anyone know what's left to be done for the sparc64 target to get= it >> to boot Solaris correctly? =C2=A0Is there any sort of a bug repository f= or Qemu >> that might list these things? =C2=A0Or maybe someone has a list in their= 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= Boot >> PROM code (at least the sun4v version of it) under the BSD and GPL licen= ses. >> What would it take to get Qemu to use the OBP code instead of OpenBIOS? >> Looks 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 a= bove >> - 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. > > Thanks for the updates. =C2=A0I didn't realize that the OBP was written s= pecifically for the emulator - I thought it was a standard PROM code. =C2= =A0Would there be any use in borrowing code from the OpenSPARC OBP source a= nd porting that over to OpenBIOS? =C2=A0Maybe that's just one of the things= waiting on a Forth expert? =C2=A0Or are their licensing issues there that = would make such a task legally challenging? I think the license are compatible, but only the Forth expert can say whether it would make sense. There are some other Forth boot prom sources in http://www.openfirmware.info/. > For the devices, the sun4u platform is PCI-based, correct? =C2=A0I assume= , then, that peripheral devices, like network cards, video cards, etc., are= shared from the rest of the Qemu code base? =C2=A0What devices are lacking= ? Yes, PCI devices should be fine. There's a TODO list under target-sparc, not all items in the list are critical though. > I'd also love to see a sparc64-solaris-user application - mainly, I'm int= erested in some sort of application that will let me run my legacy Solaris/= SPARC application on Linux/x86(_64). =C2=A0We were using a product called T= ransitive for that for a while, but IBM recently acquired Transitive and ha= s decided to bury the technology in one of their products and not offer it = as a stand-alone application anymore. =C2=A0So, I'm looking for alternative= s. =C2=A0Do you still have those patches? =C2=A0What's incompatible about t= he licensing? The patch and some discussion can be found here: http://lists.gnu.org/archive/html/qemu-devel/2009-04/msg00824.html