From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:60676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvfHP-0007wv-DW for qemu-devel@nongnu.org; Mon, 18 Feb 2019 04:32:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvfHO-0007nx-GY for qemu-devel@nongnu.org; Mon, 18 Feb 2019 04:32:03 -0500 Date: Mon, 18 Feb 2019 10:31:38 +0100 From: Igor Mammedov Message-ID: <20190218103138.21aa9c05@Igors-MacBook-Pro.local> In-Reply-To: References: <20190214140714.15738-1-imammedo@redhat.com> <4d8518f7-5272-fc18-d5c7-20c4cafdf7e8@redhat.com> <20190215123317.6903b818@Igors-MacBook-Pro.local> <2d99aca8-5ed0-bea3-4a4f-7b2a8e89b049@redhat.com> <20190215164209.54a6f747@Igors-MacBook-Pro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] memory: use memory_region_init_ram() instead of memory_region_allocate_system_memory() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, ehabkost@redhat.com, mark.cave-ayland@ilande.co.uk, qemu-devel@nongnu.org, qemu-arm@nongnu.org, jan.kiszka@web.de, atar4qemu@gmail.com On Fri, 15 Feb 2019 19:18:50 +0100 Paolo Bonzini wrote: > On 15/02/19 16:42, Igor Mammedov wrote: > >> > >> What about -m, too? Then you'd specify a memdev instead of the initial > >> memory size. > > that somewhat what I've planned, > > make -m X translate into -object memory-backend-ram,id=magically-get-what-board-uses-now,size=X -machine memdev=thatid > > > > one more reason for memdev vs device is that -numa now uses memdevs and so far it > > doesn't look that non-numa initial RAM would get immediate benefits from using -device > > on most boards (well, I couldn't come up with any modulo backend/frontend consistent usage) > > What I meant is what about making the non-NUMA option -m memdev=thatid > (and the automatic translation you mention too). Yes, bikeshedding. :) sure, I can add it, it would be just an alias to machine.memdev > > Paolo >