From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Dave Martin <Dave.Martin@arm.com>
Cc: "peter.maydell@linaro.org" <peter.maydell@linaro.org>,
"Andrew Jones" <drjones@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Igor Mammedov" <imammedo@redhat.com>
Subject: Re: [Qemu-devel] How do we do user input bitmap properties?
Date: Wed, 15 May 2019 12:09:04 +0100 [thread overview]
Message-ID: <20190515110903.GG2668@work-vm> (raw)
In-Reply-To: <20190515110045.GQ28398@e103592.cambridge.arm.com>
* Dave Martin (Dave.Martin@arm.com) wrote:
> On Wed, May 15, 2019 at 09:18:54AM +0100, Andrew Jones wrote:
> > On Tue, May 14, 2019 at 04:48:38PM +0200, Igor Mammedov wrote:
> > > On Tue, 14 May 2019 11:02:25 +0200
> > > Andrew Jones <drjones@redhat.com> wrote:
> > > > My thought is primarily machines. If a human wants to use the command
> > > > line and SVE, then I'm assuming they'll be happy with sve-max-vq or
> > > > figuring out a map they like once and then sticking to it.
> > >
> > > maybe naive question, but why not use a property/bit as user facing interface,
> > > in line with what we do with CPUID bits. (that's assuming that bits have
> > > fixed meaning).
> > > Yes, it's verbose but follows current practice and works fine with -cpu and
> > > -device.
> > > (I really hate custom preprocessing of -cpu and we were working hard to remove
> > > that in favor of canonical properties at the expense of more verbose CLI).
> > >
> >
> > Are you asking if we should do something like the following?
> >
> > -cpu host,sve1=on,sve=2=on,sve3=off,sve4=on
>
> Note, there is nothing SVE-specific about this.
>
> Either enabling features on a per-vcpu basis is justified, or it isn't:
> if it's justified, then it would be better to have a general way of
> specifying per-vcpu properties, rather than it being reinvented per
> feature.
SVE *is* a bit unusual. In most CPU features they're actually features,
they're on or off, so we have a big list of features that are
enabled/disabled. We've had that type of thing (at least on x86) for
years and it's OK.
We've got one or two things where they're numerical
(e.g. host-physbits) and we struggle a bit with how to handle them.
SVE is somewhere in between - it's a list of numbers, apparently a
fairly large arbitrarily set of numbers that could be chosen so you'd
need lots of feature flags (sve1...sve64 say or more); so that doesn't
fit the existing things we've had that have worked.
Dave
> Creating mismatched configurations is allowed by the architecture and so
> it's useful for testing the kernel, but probably less useful for real-
> world use cases today.
>
> So it may be a good idea to get the symmetric support sorted out first
> before thinking about whether and how to specify asymmetric
> configurations.
>
> Cheers
> ---Dave
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2019-05-15 11:10 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-18 9:28 [Qemu-devel] How do we do user input bitmap properties? Andrew Jones
2019-04-18 9:28 ` Andrew Jones
2019-04-18 9:46 ` Andrew Jones
2019-04-18 9:46 ` Andrew Jones
2019-04-18 10:52 ` Dave Martin
2019-04-18 10:52 ` Dave Martin
2019-04-18 11:28 ` Andrew Jones
2019-04-18 11:28 ` Andrew Jones
2019-04-18 14:03 ` Dave Martin
2019-04-18 14:03 ` Dave Martin
2019-04-18 14:43 ` Andrew Jones
2019-04-18 14:43 ` Andrew Jones
2019-04-18 14:46 ` Dave Martin
2019-04-18 14:46 ` Dave Martin
2019-04-18 14:57 ` Dr. David Alan Gilbert
2019-04-18 14:57 ` Dr. David Alan Gilbert
2019-04-18 11:26 ` Daniel P. Berrangé
2019-04-18 11:26 ` Daniel P. Berrangé
2019-04-18 15:09 ` Andrew Jones
2019-04-18 15:09 ` Andrew Jones
2019-04-18 17:48 ` Markus Armbruster
2019-04-18 17:48 ` Markus Armbruster
2019-05-13 18:42 ` Andrew Jones
2019-05-14 4:54 ` Markus Armbruster
2019-05-14 9:02 ` Andrew Jones
2019-05-14 13:32 ` Markus Armbruster
2019-05-15 8:15 ` Andrew Jones
2019-05-15 10:53 ` Dave Martin
2019-05-15 10:59 ` Dr. David Alan Gilbert
2019-05-14 14:48 ` Igor Mammedov
2019-05-15 8:18 ` Andrew Jones
2019-05-15 10:52 ` Igor Mammedov
2019-05-15 11:54 ` Andrew Jones
2019-05-23 8:35 ` Andrea Bolognani
2019-05-24 18:24 ` Eduardo Habkost
2019-05-27 16:29 ` Andrea Bolognani
2019-05-27 18:59 ` Eduardo Habkost
2019-05-15 11:00 ` Dave Martin
2019-05-15 11:09 ` Dr. David Alan Gilbert [this message]
2019-05-15 12:51 ` Dave Martin
2019-05-15 11:42 ` Andrew Jones
2019-05-15 12:50 ` Dave Martin
2019-05-14 15:28 ` Dave Martin
2019-04-19 0:07 ` Laszlo Ersek
2019-04-19 0:07 ` Laszlo Ersek
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=20190515110903.GG2668@work-vm \
--to=dgilbert@redhat.com \
--cc=Dave.Martin@arm.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=drjones@redhat.com \
--cc=imammedo@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.