From: Igor Mammedov <imammedo@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: "Laurent Vivier" <lvivier@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"David Edmondson" <dme@dme.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [RFC PATCH 1/2] hw/i386: -cpu model,-feature,+feature should enable feature
Date: Wed, 20 Jan 2021 20:21:34 +0100 [thread overview]
Message-ID: <20210120202134.4e0c4523@redhat.com> (raw)
In-Reply-To: <20210120161801.GP1227584@habkost.net>
On Wed, 20 Jan 2021 11:18:01 -0500
Eduardo Habkost <ehabkost@redhat.com> wrote:
> On Wed, Jan 20, 2021 at 10:17:36AM +0000, David Edmondson wrote:
> > On Wednesday, 2021-01-20 at 10:08:03 GMT, Daniel P. Berrangé wrote:
> >
> > > On Tue, Jan 19, 2021 at 11:30:52AM -0500, Eduardo Habkost wrote:
> > >> On Tue, Jan 19, 2021 at 04:27:56PM +0000, David Edmondson wrote:
> > >> > On Tuesday, 2021-01-19 at 10:20:56 -05, Eduardo Habkost wrote:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > Thanks for the patch. Getting rid of special -feature/+feature
> > >> > > behavior was in our TODO list for a long time.
> > >> > >
> > >> > > On Tue, Jan 19, 2021 at 02:22:06PM +0000, David Edmondson wrote:
> > >> > >> "Minus" features are applied after "plus" features, so ensure that a
> > >> > >> later "plus" feature causes an earlier "minus" feature to be removed.
> > >> > >>
> > >> > >> This has no effect on the existing "-feature,feature=on" backward
> > >> > >> compatibility code (which warns and turns the feature off).
> > >> > >
> > >> > > If we are changing behavior, why not change behavior of
> > >> > > "-feature,feature=on" at the same time? This would allow us to
> > >> > > get rid of plus_features/minus_features completely and just make
> > >> > > +feature/-feature synonyms to feature=on/feature=off.
> > >> >
> > >> > Okay, I'll do that.
> > >> >
> > >> > Given that there have been warnings associated with
> > >> > "-feature,feature=on" for a while, changing that behaviour seems
> > >> > acceptable.
> > >> >
> > >> > Would the same be true for changing "-feature,+feature"? (i.e. what this
> > >> > patch does) Really: can this just be changed, or does there have to be
> > >> > some period where the behaviour stays the same with a warning?
> > >>
> > >> I actually expected warnings to be triggered when using
> > >> "-feature,+feature" as well. If we were not generating warnings
> > >> for that case, it will need more careful evaluation, just to be
> > >> sure it's safe. Igor, do you remember the details here?
> > >
> > > Where are you expecting warnings ? I don't see any when launching QEMU
> >
> > qemu-system-x86_64 -display none -cpu Westmere,-vmx,+vmx
> >
> > Warnings because the result of this is "-vmx".
> >
> > > IMHO just leave the parsing unchanged, deprecate it, and then delete
> > > the code. We don't need to "improve" usability semantics of something
> > > that we want to delete anyway.
> >
> > /me nods.
>
> I agree, but I guess we need to convince Paolo:
> https://lore.kernel.org/qemu-devel/1990888058.22417362.1465939000140.JavaMail.zimbra@redhat.com/
that's ancient :)
He recently started this revolution himself :)
https://www.mail-archive.com/qemu-devel@nongnu.org/msg757280.html
That's why I have -cpu +/-foo deprecation on my not too far away TODO list.
next prev parent reply other threads:[~2021-01-20 19:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-19 14:22 [RFC PATCH 0/2] x86 CPU feature +/- fiddling and +kvm-no-defaults David Edmondson
2021-01-19 14:22 ` [RFC PATCH 1/2] hw/i386: -cpu model, -feature, +feature should enable feature David Edmondson
2021-01-19 15:20 ` [RFC PATCH 1/2] hw/i386: -cpu model,-feature,+feature " Eduardo Habkost
2021-01-19 16:27 ` [External] : " David Edmondson
2021-01-19 16:30 ` Eduardo Habkost
2021-01-20 9:59 ` Igor Mammedov
2021-01-20 10:08 ` David Edmondson
2021-01-20 10:08 ` [External] : " Daniel P. Berrangé
2021-01-20 10:17 ` David Edmondson
2021-01-20 16:18 ` Eduardo Habkost
2021-01-20 19:21 ` Igor Mammedov [this message]
2021-01-20 20:12 ` [PATCH] docs/system: Deprecate `-cpu ...,+feature,-feature` syntax Eduardo Habkost
2021-01-20 20:19 ` [PATCH] docs/system: Deprecate `-cpu ..., +feature, -feature` syntax David Edmondson
2021-01-21 9:39 ` [PATCH] docs/system: Deprecate `-cpu ...,+feature,-feature` syntax Daniel P. Berrangé
2021-01-27 0:14 ` John Snow
2021-01-21 10:25 ` Igor Mammedov
2021-01-19 14:22 ` [RFC PATCH 2/2] target/i386: Add "-cpu +kvm-no-defaults" David Edmondson
2021-01-19 16:28 ` [RFC PATCH 0/2] x86 CPU feature +/- fiddling and +kvm-no-defaults Daniel P. Berrangé
2021-01-19 16:35 ` Eduardo Habkost
2021-01-19 16:41 ` Daniel P. Berrangé
2021-01-20 10:01 ` Igor Mammedov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210120202134.4e0c4523@redhat.com \
--to=imammedo@redhat.com \
--cc=berrange@redhat.com \
--cc=dme@dme.org \
--cc=ehabkost@redhat.com \
--cc=lvivier@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).