Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Idslu-0003Rh-Ml for qemu-devel@nongnu.org; Fri, 05 Oct 2007 15:23:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Idslt-0003Ps-NN for qemu-devel@nongnu.org; Fri, 05 Oct 2007 15:23:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Idslt-0003PX-GP for qemu-devel@nongnu.org; Fri, 05 Oct 2007 15:23:37 -0400 Received: from 149.red-80-37-155.staticip.rima-tde.net ([80.37.155.149] helo=claunia.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Idslq-00060g-Ov for qemu-devel@nongnu.org; Fri, 05 Oct 2007 15:23:35 -0400 Received: from localhost (localhost [127.0.0.1]) by claunia.com (Postfix) with ESMTP id 0A1031F977B7 for ; Fri, 5 Oct 2007 20:23:29 +0100 (BST) Received: from claunia.com ([127.0.0.1]) by localhost (hecate.claunia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00194-01 for ; Fri, 5 Oct 2007 20:23:03 +0100 (BST) Received: from zeus (zeus.claunia.com [172.26.2.1]) by claunia.com (Postfix) with ESMTP id 0631C1F97786 for ; Fri, 5 Oct 2007 20:22:57 +0100 (BST) Message-ID: From: "Natalia Portillo" References: <47009C20.7000809@qumranet.com><1191222768.16080.0.camel@bxl-cdrw.bxl.cronos-technologies.com><36FA7E24-859B-4033-BB37-2C8453D81677@web.de><1191253624.3514.56.camel@jma4.dev.netgem.com><20071001185627.GI13317@networkno.de> <20071001215741.GA16772@networkno.de> In-Reply-To: <20071001215741.GA16772@networkno.de> Subject: Re: [Qemu-devel] qemu/pc-bios ppc_rom.bin Date: Fri, 5 Oct 2007 20:23:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original 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 Hi all, Just to resume, I'm in position with Fabrice, Thiemo and Jocelyn. And, to note. Current BIOS are very bloated assembler hacks that everytime I use them make me think "miracle, it POSTs!" No way, in a far far away galaxy, there was a simple BIOS, that WONT RUN UNDER QEMU. Why? Timing? Doesn't matter to it. Strange hardware bugs? Too early for ever knowing they were there. Source available? Yes, it is, I don't know the license, but Compaq used it to make the cloned BIOS, so we should be able to use it to make QEMU able to POST-It (trademark lol) And if any firmware wants to be an alternative open-source firmware it should meet the following requirements: 1.- Be able to boot, unmodified, in real hardware (REAL!) 2.- Be able to boot the same operating systems a closed-source firmware for that platform will be. (in REAL hardware) It is desiderable for QEMU, no way, IT IS A MUST FOR QEMU, to be able to boot real firmware that boots in the real hardware QEMU is emulating. (That is, if QEMU emulates a PIIX4 with Pentium II, it must support booting a BIOS for P2+PIIX4, but must not support booting a BIOS for a Athlon+nForce) And, extrapolate what I say to PowerPC, MIPS, ARM, Alpha, Sparc, so on! Regards, Natalia Portillo ----- Original Message ----- From: "Thiemo Seufer" To: "Blue Swirl" Cc: ; Sent: Monday, October 01, 2007 10:57 PM Subject: Re: [Qemu-devel] qemu/pc-bios ppc_rom.bin > Blue Swirl wrote: > [snip] >> > > Qemu is not also aimed for 100% accurate emulation of the hardware. >> > > There are no caches or cycle counters and hardware devices run >> > > unrealistically fast from CPU standpoint. Emulating performance >> > > counters or the errata the most CPUs have would be extremely >> > > difficult. I doubt Qemu CPU emulation can ever pass POST of real >> > > BIOSes. >> > >> > I am working on making the Malta emulation boot a unaltered YAMON >> > image. I don't see why a PC BIOS would be harder to accomodate. >> >> Emulating microcode, or firmware blobs loaded to misc devices. Think >> writing a BIOS for Transmeta, > > Writing the emulation for a transmeta is IMHO more challenging than > writing the "BIOS". Btw, if you are interested in the x86 mode, you can > handle the transmeta just as a x86 variant (with a much more standard > BIOS). > >> Alpha or a SoC. > > Writing "Firmware for a SoC" is part of my dayjob. > >> > > Real BIOSes are also closed source, proprietary binary blobs. >> > >> > At least YAMON, CFE and PMON are not closed source. YAMON has a funny >> > license which - I hope - will change. >> > >> > > Making open source BIOSes a viable alternative is in my opinion a >> > > much >> > > more important goal. >> > >> > The one doesn't exclude the other. That said, I regard the ability to >> > boot unaltered real-world firmare as an important test of the quality >> > of a system emulation. >> >> Maybe. The CPU probes for cacheline size, checks for errata #42 vs >> #45, reads debug registers, attempts to identify the bus speed by >> comparing I/O access times, tries to verify the system using a TPM and >> fails all cases. What can you do? > > Improve the emulation to handle at least one probing path. > > > Thiemo > > > >