Received: from eggs.gnu.org ([2001:4830:134:3::10]:37344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8XaX-0000np-Od for qemu-devel@nongnu.org; Thu, 02 Jun 2016 14:43:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8XaV-00087k-PL for qemu-devel@nongnu.org; Thu, 02 Jun 2016 14:43:24 -0400 Date: Thu, 2 Jun 2016 15:43:14 -0300 From: Eduardo Habkost Message-ID: <20160602184314.GJ19055@thinpad.lan.raisama.net> References: <1464799050-11002-1-git-send-email-imammedo@redhat.com> <1464799050-11002-2-git-send-email-imammedo@redhat.com> <20160601174309.GA13503@thinpad.lan.raisama.net> <20160602115930.6945e5d6@igors-macbook-pro.local> <20160602143826.GD19055@thinpad.lan.raisama.net> <20160602185655.20d7c7e0@nial.brq.redhat.com> <20160602173427.GI19055@thinpad.lan.raisama.net> <20160602202337.027428cc@igors-macbook-pro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160602202337.027428cc@igors-macbook-pro.local> Subject: Re: [Qemu-devel] [PATCH RFC 1/8] target-i386: cpu: move features logic that requires CPUState to realize time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com, rth@twiddle.net, blauwirbel@gmail.com, mark.cave-ayland@ilande.co.uk, qemu-arm@nongnu.org On Thu, Jun 02, 2016 at 08:23:37PM +0200, Igor Mammedov wrote: > On Thu, 2 Jun 2016 14:34:27 -0300 > Eduardo Habkost wrote: [...] > > > > > > > > > > I don't plan to replace plus/minus_features with anything nor to > > > > > make this variables a global ones to spread +- x86/sparc legacy > > > > > format everywhere. > > > > > > > > Can't the +/- semantics be emulated by simply registering > > > > plus_features/minus_features after the other global properties > > > > are registered inside x86_cpu_parse_featurestr()? > > > it could be done, at the first glance it will take 2 extra parsing > > > passes > > > > > > 1: copy featurestr, parse feat=x,feat > > > 2: copy featurestr, parse +feat > > > 3: copy featurestr, parse -feat > > > > Why? Can't we just replace plus_features and minus_features with > > two string lists (or a QDict), and make the corresponding > > object_property_parse()/qdev_prop_register_global() calls after > > the main parsing loop? > > > > (Didn't you do that in your old "target-i386: set [+-]feature > > using static properties" patch?) > ok, I'll do that. Thanks! [...] > > But as I said above: if we are not deleting any code (and are > > adding extra code instead), I don't see the point of forcibly > > disabling it. We can just leave it there and print a warning. > ok, lets go with warning, saying" > > "[+-]feature syntax is obsoleted and will be removed in future, > it's recommended to use canonical property syntax 'feature=value'" We could print "+%s is obsolete [...] use '%s=on'" and "-%s is obsolete [...] use '%s=off'", depending on the case. This way, users can see more easily what's the proper syntax. -- Eduardo