Received: from eggs.gnu.org ([2001:4830:134:3::10]:41168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTnBJ-0003M1-G4 for qemu-devel@nongnu.org; Wed, 09 Oct 2013 02:23:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTnBD-0000qM-H2 for qemu-devel@nongnu.org; Wed, 09 Oct 2013 02:23:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTnBD-0000qF-7d for qemu-devel@nongnu.org; Wed, 09 Oct 2013 02:23:31 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r996NThh025788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Oct 2013 02:23:29 -0400 From: Markus Armbruster References: <20131008004126.773017235@amt.cnet> <874n8sp68n.fsf@blackfin.pond.sub.org> <5253BC12.90105@redhat.com> <20131008220329.GB16625@amt.cnet> Date: Wed, 09 Oct 2013 08:23:26 +0200 In-Reply-To: <20131008220329.GB16625@amt.cnet> (Marcelo Tosatti's message of "Tue, 8 Oct 2013 19:03:29 -0300") Message-ID: <87r4bv7yjl.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [patch 0/2] force -mem-path RAM allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti Cc: Paolo Bonzini , qemu-devel@nongnu.org Marcelo Tosatti writes: > On Tue, Oct 08, 2013 at 10:02:26AM +0200, Paolo Bonzini wrote: >> Il 08/10/2013 09:32, Markus Armbruster ha scritto: >> > We have >> > >> > -mem-path FILE provide backing storage for guest RAM >> > -mem-prealloc preallocate guest memory (use with -mem-path) >> > >> > PATCH 2/2 adds >> > >> > -mem-path-force fail if unable to allocate RAM as specified by >> > -mem-path >> > >> > Looks like it's time to consolidate the options related to guest memory >> > into a single, QemuOpts-style -memory NAME=VALUE,... What do you guys >> > think? >> >> Yes, we can use "-numa memory" (or "-numa mem") that Wanlong Gao is >> adding. We can add path=, preallocate= and force= options there. >> >> Paolo > > It would be important for the new option to be backportable > independently. Therefore mixing it with -numa is not an option. > > Also due to backportability supporting a new style of command line > for -mem-path is problematic (management must be changed accordingly). We've converted -FOO ARG options to QemuOpts-style -FOO NAME=VALUE,... before. You can use QemuOptsList member implied_opt_name to get bare ARG accepted. Works except for ARGs containing '=' or ','. Management still has to detect whether -FOO is old or new. QMP command query-command-line-options should do. > Can the new option format for memory be created incrementally on > top of -mem-path-force? (agree its a good thing, it avoids proliferation > of new options). If you do it on top, it won't avoid proliferation, or am I missing something?