From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: which CPUs should call aarch64_add_{sve, pauth, sme}_properties() ?
Date: Tue, 27 Jun 2023 08:22:04 +0200 [thread overview]
Message-ID: <acb6fd1e-8bd6-2152-ec70-a5996d3cfb41@linaro.org> (raw)
In-Reply-To: <CAFEAcA-TNaJzMPGCMEN-erSc1bQ4myq6SyiRDHY7_7fKLdqyQg@mail.gmail.com>
On 6/26/23 18:54, Peter Maydell wrote:
> At the moment:
> * aarch64_a64fx_initfn() calls aarch64_add_sve_properties()
> * aarch64_max_tcg_initfn() calls all of
> aarch64_add_pauth_properties(), aarch64_add_sve_properties(),
> aarch64_add_sme_properties()
>
> and it happens that (ignoring 'max') we only have a64fx implementing SVE
> and no CPUs implementing Pauth or SME yet.
>
> Is the idea that all CPUs (both ones trying to match real hardware
> and ones which are QEMU-specific like 'max') should call these
> functions to set up the properties if they exist? Or is the idea
> that 'max' is special and match-real-hardware CPUs don't need the
> user-facing configurability?
Set up properties if they exist was the idea, I think.
> If the former, maybe it would be better to put these in
> arm_cpu_post_init() so they're automatically called if the CPU
> specific initfn set the ID register value that indicates the
> presence of pauth/sve/sme.
I thought there was some weirdness with kvm and -cpu host.
> I ask because Neoverse-V1 has both SVE and Pauth, and I'm not
> sure if its init fn should be calling these functions.
I would say so.
r~
prev parent reply other threads:[~2023-06-27 6:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-26 16:54 which CPUs should call aarch64_add_{sve,pauth,sme}_properties() ? Peter Maydell
2023-06-27 6:22 ` Richard Henderson [this message]
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=acb6fd1e-8bd6-2152-ec70-a5996d3cfb41@linaro.org \
--to=richard.henderson@linaro.org \
--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 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).