From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtyko-0000js-72 for qemu-devel@nongnu.org; Mon, 09 Jun 2014 08:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wtyki-0002eW-Sy for qemu-devel@nongnu.org; Mon, 09 Jun 2014 08:32:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtyki-0002dI-KF for qemu-devel@nongnu.org; Mon, 09 Jun 2014 08:32:40 -0400 Message-ID: <5395A95F.2080708@redhat.com> Date: Mon, 09 Jun 2014 14:32:31 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140609142823.5a822afa@thinkpad> In-Reply-To: <20140609142823.5a822afa@thinkpad> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 20/29] hostmem: allow preallocation of any memory region List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , Hu Tao Cc: Yasunori Goto , qemu-devel@nongnu.org, Eduardo Habkost , "Michael S. Tsirkin" Il 09/06/2014 14:28, Igor Mammedov ha scritto: > On Mon, 9 Jun 2014 18:25:25 +0800 > Hu Tao wrote: > >> From: Paolo Bonzini >> >> And allow preallocation of file-based memory even without -mem-prealloc. >> Some care is necessary because -mem-prealloc does not allow disabling >> preallocation for hostmem-file. > maybe 'prealloc' property should belong to hostmem-file instead of the > abstract hostmem. No, prealloc makes sense even in hostmem-ram (especially in combination with "-realtime mlock"). Paolo