From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAH2D-0000Js-P8 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 09:27:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAH2C-0000yu-P5 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 09:27:09 -0400 Date: Tue, 7 Jun 2016 15:26:58 +0200 From: Igor Mammedov Message-ID: <20160607152658.4221ff0d@nial.brq.redhat.com> In-Reply-To: <78c0ee46-b787-e84e-45f4-d98b7b25b9a8@redhat.com> References: <1465226212-254093-1-git-send-email-imammedo@redhat.com> <1465226212-254093-7-git-send-email-imammedo@redhat.com> <934c1059-07ac-aed0-4ee5-c4bca138db55@redhat.com> <20160607143244.2d4ddb81@nial.brq.redhat.com> <5d059ff5-dadb-8f90-deb0-b864bb50ee87@redhat.com> <20160607145400.3dcf78b8@nial.brq.redhat.com> <78c0ee46-b787-e84e-45f4-d98b7b25b9a8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Paolo Bonzini Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, ehabkost@redhat.com, mark.cave-ayland@ilande.co.uk, blauwirbel@gmail.com, qemu-arm@nongnu.org, rth@twiddle.net On Tue, 7 Jun 2016 15:00:04 +0200 Paolo Bonzini wrote: > On 07/06/2016 14:54, Igor Mammedov wrote: > > On Tue, 7 Jun 2016 14:36:51 +0200 > > Paolo Bonzini wrote: > > > >> On 07/06/2016 14:32, Igor Mammedov wrote: > >>>>> 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. > >>> That's (legacy)current semantic of -cpu +-foo where it overrides any foo=x, > >>> potentially it's possible to track foo=x locally in parser > >>> and then compare with +-foo both ways. > >>> But all we can do currently is to print warning about such use case. > >>> > >>> I think Eduardo's suggestion to just warn that +-foo is obsolete for now > >>> and drop support for it in several releases is sufficient(good) enough. > >> > >> kvm-unit-tests and libvirt both use it, especially because =on and =off > >> are relatively new I think? It seems like it's really widespread. > > > > Yep, that's why it's not removed now. > > Looks like libvirt would be able to switch to foo=x syntax, > > I can take a look at kvm-unit-tests and make it use foo=x too. > > And all tutorials, and all scripts. It's really too hard. > > I'd really prefer to make an incompatible change straight in 2.7 for the > case of mixed foo=x and [+-]foo. I've tried to make a bit more extreme incompatible change starting from 2.7 machine type in RFC (i.e. allow only foo=x syntax). But Eduardo prefers to keep current +-foo, just marking it obsolete so that users would have time to adapt before support for legacy +-foo is dropped. Anyways, we can introduce "mixed foo=x and [+-]foo" check on top of this series with warning and probably switch to fail later so not break existing users without giving them time to adapt. > Paolo