From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kt17n-0004Tk-Op for qemu-devel@nongnu.org; Thu, 23 Oct 2008 10:25:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kt17m-0004SY-1G for qemu-devel@nongnu.org; Thu, 23 Oct 2008 10:25:19 -0400 Received: from [199.232.76.173] (port=48637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt17l-0004SK-Q9 for qemu-devel@nongnu.org; Thu, 23 Oct 2008 10:25:17 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:36338) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kt17l-0003PU-F1 for qemu-devel@nongnu.org; Thu, 23 Oct 2008 10:25:17 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e2.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m9NEPGoi022309 for ; Thu, 23 Oct 2008 10:25:16 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9NEPFRB124092 for ; Thu, 23 Oct 2008 10:25:15 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9NEPCwR008763 for ; Thu, 23 Oct 2008 10:25:12 -0400 Message-ID: <49008948.60102@us.ibm.com> Date: Thu, 23 Oct 2008 09:25:12 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1224771556-11146-1-git-send-email-glommer@redhat.com> <1224771556-11146-2-git-send-email-glommer@redhat.com> <490080A2.7040802@us.ibm.com> <49008787.3050202@siemens.com> In-Reply-To: <49008787.3050202@siemens.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 01/32] use anonymous memory for kqemu. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Glauber Costa , jes@sgi.com, qemu-devel@nongnu.org, avi@qumranet.com, dmitry.baryshkov@siemens.com Jan Kiszka wrote: > Anthony Liguori wrote: > >> The idea behind this patch is that currently kqemu uses /dev/shm for >> memory allocations instead of anonymous memory (like the rest of QEMU). >> Instead of introducing YA hook, we can just switch kqemu to use >> anonymous memory and eliminate the special case. >> >> If I recall correctly, the reason for using /dev/shm was concern that >> get_user_pages() didn't do the right thing for anonymous memory and the >> use of /dev/shm was a hack around that. However, I'm not sure that was >> ever the case. Certainly, with any sufficiently modern kernel >> get_user_pages() does what one would expect. KVM uses get_user_pages() >> on anonymous memory in roughly the same way kqemu uses it now. >> >> So I think it's safe to make the switch. Fabrice, what do you think? >> > > This hack-around, was it purely Linux-motivated? Or did/do other OSes > have similar issues? > /dev/shm doesn't exist on anything but Linux. Regards, Anthony Liguori > Jan > >