Received: from eggs.gnu.org ([2001:4830:134:3::10]:35555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAFRa-0005ND-FO for qemu-devel@nongnu.org; Tue, 07 Jun 2016 07:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAFRZ-00038C-Dj for qemu-devel@nongnu.org; Tue, 07 Jun 2016 07:45:14 -0400 References: <1465226212-254093-1-git-send-email-imammedo@redhat.com> <1465226212-254093-7-git-send-email-imammedo@redhat.com> From: Paolo Bonzini Message-ID: <934c1059-07ac-aed0-4ee5-c4bca138db55@redhat.com> Date: Tue, 7 Jun 2016 13:44:58 +0200 MIME-Version: 1.0 In-Reply-To: <1465226212-254093-7-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/10] target-i386: print obsolete warnings if +-features are used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, ehabkost@redhat.com, mark.cave-ayland@ilande.co.uk, blauwirbel@gmail.com, qemu-arm@nongnu.org, rth@twiddle.net On 06/06/2016 17:16, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > target-i386/cpu.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index f791a06..31e5e6f 100644 > --- a/target-i386/cpu.c > +++ b/target-i386/cpu.c > @@ -1975,6 +1975,9 @@ static void x86_cpu_parse_featurestr(CPUState *cs, char *features, > error_propagate(errp, local_err); > return; > } > + fprintf(stderr, > + "'+%s' is obsolete and will be removed in future, use '%s=on'", > + featurestr + 1, featurestr + 1); Could you detect using +foo together with foo=off, and -foo together with foo=on? Those are the really problematic cases, without them +foo and -foo can become synonyms for =on and =off. Paolo > continue; > } else if (featurestr[0] == '-') { > add_flagname_to_bitmaps(featurestr + 1, minus_features, &local_err); > @@ -1982,6 +1985,9 @@ static void x86_cpu_parse_featurestr(CPUState *cs, char *features, > error_propagate(errp, local_err); > return; > } > + fprintf(stderr, > + "'-%s' is obsolete and will be removed in future, use '%s=off'", > + featurestr + 1, featurestr + 1); > continue; > } > >