From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Fsy-0003qK-60 for qemu-devel@nongnu.org; Tue, 13 Aug 2013 10:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9Fsp-0001yt-LS for qemu-devel@nongnu.org; Tue, 13 Aug 2013 10:47:48 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:63476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Fsp-0001yi-F1 for qemu-devel@nongnu.org; Tue, 13 Aug 2013 10:47:39 -0400 Received: by mail-wi0-f177.google.com with SMTP id hq12so724210wib.4 for ; Tue, 13 Aug 2013 07:47:38 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <520A46E4.2000208@redhat.com> Date: Tue, 13 Aug 2013 16:47:00 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1376310634-20778-1-git-send-email-mst@redhat.com> <1376310634-20778-3-git-send-email-mst@redhat.com> <20130812185612.GA1616@redhat.com> In-Reply-To: <20130812185612.GA1616@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 for-1.6 v2 2/2] loader: put FW CFG ROM files into RAM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Anthony Liguori , Laszlo Ersek , qemu-devel@nongnu.org, Gerd Hoffmann Il 12/08/2013 20:56, Michael S. Tsirkin ha scritto: >> > Similarly, what you're trying to do here doesn't require >> > that the guest sees any specific host pointer, so you should >> > just use memory_region_init_ram(). > I was concerned that we are wasting resources here. > In particular, huge page memory might get allocated > and there's no need for it as it's never mapped > into guest. You are also right, but I think this issue should be fixed separately (e.g. only use huge pages for main RAM). Paolo