From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59076 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyL3u-0002yp-CB for qemu-devel@nongnu.org; Sat, 12 Mar 2011 04:24:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyL3s-0005YH-OU for qemu-devel@nongnu.org; Sat, 12 Mar 2011 04:24:37 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:42103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyL3s-0005Xx-7L for qemu-devel@nongnu.org; Sat, 12 Mar 2011 04:24:36 -0500 Message-ID: <4D7B3BD0.3030704@web.de> Date: Sat, 12 Mar 2011 10:24:32 +0100 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: RFC: emulation of system flash References: <4D794489.6010903@gmx.net> <4D794C56.6020809@gmx.net> <4D796A8E.6000204@web.de> <4D796C81.5070801@gmx.net> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE80BA86786E12F9E61C4BF7C" Sender: jan.kiszka@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jordan Justen Cc: Gleb Natapov , Stefan Hajnoczi , Carl-Daniel Hailfinger , Michal Suchanek , qemu-devel , Kevin O'Connor , Avi Kivity This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE80BA86786E12F9E61C4BF7C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-03-11 20:09, Jordan Justen wrote: > On Thu, Mar 10, 2011 at 16:27, Carl-Daniel Hailfinger > wrote: >> Auf 11.03.2011 01:19, Jan Kiszka schrieb: >>> At least it's an in-band interface, which is the better choice as we >>> currently only have a PIIX3 southbridge for x86, predating even FWHs.= >>> >> >> Right, that pretty much kills the option of using SPI unless someone >> wants to emulate a flash translation controller (e.g. the ITE IT8716F >> Super I/O). Can be done, would work, but the IT8716F has some quirks >> (max 1 MB SPI flash chips) which make it a less desirable option for >> emulation. >=20 > I don't much like this, but we might consider adding the SPI host > controller MMIO just below the flash data. For the firmware, we > usually will know the size of firmware device that we've built for. > It seems SPI flash is pretty common today, and it sounds like > Carl-Daniel may have some SPI emulation code. We don't emulate a chipset yet that includes SPI. Adding an artificial SPI master is like PV - the guests will require special drivers. >=20 > Am I understanding correctly that CFI is programmed via MMIO in the > flash memory space? How difficult would it be to emulate CFI? Does Check qemu/hw/pflash_cfi02.c. > CFI have the same power-of-2 size flexibility as SPI? Yes. Jan --------------enigE80BA86786E12F9E61C4BF7C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk17O9AACgkQitSsb3rl5xQ2AgCggSKxaS8ofVvLIAfM24x+kfQ5 VWUAn1lARyE+D+5leHmewHlmS0rmT9Fr =OBN2 -----END PGP SIGNATURE----- --------------enigE80BA86786E12F9E61C4BF7C--