Received: from eggs.gnu.org ([209.51.188.92]:34114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEe2q-0006C0-MB for qemu-devel@nongnu.org; Thu, 11 Apr 2019 14:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEe2o-0004aP-I8 for qemu-devel@nongnu.org; Thu, 11 Apr 2019 14:03:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38808) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEe2o-0004Zv-9X for qemu-devel@nongnu.org; Thu, 11 Apr 2019 14:03:26 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3635E2CD7F8 for ; Thu, 11 Apr 2019 18:03:25 +0000 (UTC) Date: Thu, 11 Apr 2019 19:03:14 +0100 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Message-ID: <20190411180314.GI3641@redhat.com> Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= References: <20190411175345.19414-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190411175345.19414-1-thuth@redhat.com> Subject: Re: [Qemu-devel] [libvirt] [PATCH for-QEMU-4.1] Declare -realtime as deprecated List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, "Michael S . Tsirkin" , libvir-list@redhat.com, Paolo Bonzini , Eduardo Habkost On Thu, Apr 11, 2019 at 07:53:45PM +0200, Thomas Huth wrote: > The old -realtime mlock=on|off parameter does exactly the same as the > new -overcommit mem-lock=on|off parameter. Additionally, "-realtime" > does not activate any additional "realtime" capabilities as the name > might indicate. We should avoid to confuse the users this way, so > let's deprecate the old -realtime option. FYI libvirt currently uses -realtime mlock=on so will need adapting to cope with this change. > > Signed-off-by: Thomas Huth > --- > Deprecation has already been suggested last year: > https://patchwork.kernel.org/patch/10480963/#22026215 > ... but apparently we forgot to really do it. > > qemu-deprecated.texi | 5 +++++ > vl.c | 2 ++ > 2 files changed, 7 insertions(+) > > diff --git a/qemu-deprecated.texi b/qemu-deprecated.texi > index 2219386769..2c45204f3f 100644 > --- a/qemu-deprecated.texi > +++ b/qemu-deprecated.texi > @@ -72,6 +72,11 @@ backend settings instead of environment variables. To ease migration to > the new format, the ``-audiodev-help'' option can be used to convert > the current values of the environment variables to ``-audiodev'' options. > > +@subsection -realtime (since 4.1) > + > +The @code{-realtime mlock=on|off} argument has been replaced by the > +@code{-overcommit mem-lock=on|off} argument. > + > @section QEMU Machine Protocol (QMP) commands > > @subsection block-dirty-bitmap-add "autoload" parameter (since 2.12.0) > diff --git a/vl.c b/vl.c > index c696ad2a13..d6a2779b70 100644 > --- a/vl.c > +++ b/vl.c > @@ -3912,6 +3912,8 @@ int main(int argc, char **argv, char **envp) > } > break; > case QEMU_OPTION_realtime: > + warn_report("'-realtime mlock=...' is deprecated, please use " > + "'-overcommit mem-lock=...' instead"); > opts = qemu_opts_parse_noisily(qemu_find_opts("realtime"), > optarg, false); > if (!opts) { > -- > 2.21.0 > > -- > libvir-list mailing list > libvir-list@redhat.com > https://www.redhat.com/mailman/listinfo/libvir-list Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|