From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BbLGR-00034i-3Q for qemu-devel@nongnu.org; Fri, 18 Jun 2004 11:26:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BbLGP-000344-CG for qemu-devel@nongnu.org; Fri, 18 Jun 2004 11:26:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbLGP-00033n-9b for qemu-devel@nongnu.org; Fri, 18 Jun 2004 11:26:45 -0400 Received: from [213.146.130.142] (helo=trantor.org.uk) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BbLEv-0006EO-RC for qemu-devel@nongnu.org; Fri, 18 Jun 2004 11:25:14 -0400 From: Gianni Tedesco Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-KOnjLCZ9+SEIUF+bw5hF" Date: Fri, 18 Jun 2004 16:18:05 +0100 Message-Id: <1087571885.3375.168.camel@sherbert> Mime-Version: 1.0 Subject: [Qemu-devel] Physical memory temp file. 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 --=-KOnjLCZ9+SEIUF+bw5hF Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, In, vl.c at around line 2480, we see this comment: /* as we must map the same page at several addresses, we must use a fd */ and then go futzing around in /tmp Seems to me like we could simply map /dev/zero with MAP_PRIVATE, that way we: o Don't generate disk I/O's when using memory o Don't take up a node in temp o Don't take up diskspace on filesystems which can't create sparse files o Still allow mapping same page at several addresses Would a patch to fix this be accepted? Or is my (very cursory) analysis incorrect? --=20 // Gianni Tedesco (gianni at scaramanga dot co dot uk) lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D --=-KOnjLCZ9+SEIUF+bw5hF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBA0weskbV2aYZGvn0RAny5AJ4kXqH9inRSfOm8QGtifrkrea6OPQCfc2+u 9u60Kvg1Ixyhg4NXPR/+vHQ= =1cfx -----END PGP SIGNATURE----- --=-KOnjLCZ9+SEIUF+bw5hF--