From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKOy6-0003jK-53 for qemu-devel@nongnu.org; Thu, 21 Aug 2014 05:47:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKOxx-0000uu-4N for qemu-devel@nongnu.org; Thu, 21 Aug 2014 05:47:42 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:42177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKOxw-0000uq-Sx for qemu-devel@nongnu.org; Thu, 21 Aug 2014 05:47:33 -0400 Received: by mail-we0-f175.google.com with SMTP id t60so9060236wes.20 for ; Thu, 21 Aug 2014 02:47:32 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <53F5C030.20302@redhat.com> Date: Thu, 21 Aug 2014 11:47:28 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1408556804-5266-1-git-send-email-marc.mari.barcelo@gmail.com> <53F5B6AB.7010205@redhat.com> <20140821111810.785eaad2@crunchbang> In-Reply-To: <20140821111810.785eaad2@crunchbang> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC] qapi: New command query-mtree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?TWFyYyBNYXLDrQ==?= Cc: Peter Maydell , qemu-devel@nongnu.org, Stefan Hajnoczi , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 21/08/2014 11:18, Marc MarĂ­ ha scritto: > >> > If you had a memory map abstraction in libqos, malloc could be >> > generic. Perhaps you can start doing that for PC? > Do you mean, start implementing malloc using this "query-mtree"? Or you > have another idea in mind? I mean implementing a memory map interface, and implementing it for PC (that says that the first MB is reserved for example, and gets the memory size out of fw_cfg). Then you can implement malloc on top. Paolo