From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWRRx-0001M1-QS for qemu-devel@nongnu.org; Fri, 22 Jun 2018 15:10:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWRRt-0007P5-RK for qemu-devel@nongnu.org; Fri, 22 Jun 2018 15:10:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48316 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWRRt-0007Or-NG for qemu-devel@nongnu.org; Fri, 22 Jun 2018 15:10:21 -0400 Date: Fri, 22 Jun 2018 22:10:20 +0300 From: "Michael S. Tsirkin" Message-ID: <20180622221001-mutt-send-email-mst@kernel.org> References: <20180622003140.164613-1-mst@redhat.com> <20180622003140.164613-2-mst@redhat.com> <20180622183448.GB7451@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622183448.GB7451@localhost.localdomain> Subject: Re: [Qemu-devel] [PATCH v4 1/2] kvm: support -overcommit cpu-pm=on|off List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Paolo Bonzini , Richard Henderson , Marcelo Tosatti , kvm@vger.kernel.org On Fri, Jun 22, 2018 at 03:34:48PM -0300, Eduardo Habkost wrote: > On Fri, Jun 22, 2018 at 03:31:48AM +0300, Michael S. Tsirkin wrote: > [...] > > - enable_mlock = qemu_opt_get_bool(opts, "mlock", true); > > + /* Don't override the -dedicated option if set */ > > + enable_mlock = enable_mlock || > > + qemu_opt_get_bool(opts, "mlock", true); > > + break; > > + case QEMU_OPTION_dedicated: > > + opts = qemu_opts_parse_noisily(qemu_find_opts("dedicated"), > > + optarg, false); > > + if (!opts) { > > + exit(1); > > + } > > + /* Don't override the -realtime option if set */ > > + enable_mlock = enable_mlock || > > + qemu_opt_get_bool(opts, "mem-lock", false); > > + enable_cpu_pm = qemu_opt_get_bool(opts, "cpu-pm", false); > > I would prefer to simply make the last option win, because it > would be more obvious. But not a big deal if we are going to > deprecate -realtime. > > BTW, are you going to send a qemu-doc.texi patch documenting > -realtime as deprecated? Once this is merged, as a patch on top, I can do this, sure. > -- > Eduardo