From: Jan Beulich <jbeulich@suse.com>
To: Roger Pau Monne <roger.pau@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] x86/amd: do not expose HWCR.TscFreqSel to guests
Date: Wed, 13 Sep 2023 08:14:46 +0200 [thread overview]
Message-ID: <809ef122-7060-c033-e50d-6e372ab89de9@suse.com> (raw)
In-Reply-To: <20230912162305.34339-1-roger.pau@citrix.com>
On 12.09.2023 18:23, Roger Pau Monne wrote:
> OpenBSD will attempt to unconditionally access PSTATE0 if HWCR.TscFreqSel is
> set, and will also attempt to unconditionally access HWCR if the TSC is
> reported as Invariant.
>
> The reasoning for exposing HWCR.TscFreqSel was to avoid Linux from printing a
> (bogus) warning message, but doing so at the cost of OpenBSD not booting is not
> a suitable solution.
Why is the warning bogus? The PPR doesn't even state what the bit being
clear means; it's a r/o one. On respective families it cannot possibly
be correct to expose it clear.
> In order to fix expose an empty HWCR.
>
> Fixes: 14b95b3b8546 ('x86/AMD: expose HWCR.TscFreqSel to guests')
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> ---
> Not sure whether we want to expose something when is_cpufreq_controller() is
> true, seeing as there's a special wrmsr handler for the same MSR in that case.
> Likely should be done for PV only, but also likely quite bogus.
Well, keying to is_cpufreq_controller() is indeed questionable, but is
there any reason to not minimally expose the bit correctly when a
domain cannot migrate?
Jan
next prev parent reply other threads:[~2023-09-13 6:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-12 16:23 [PATCH] x86/amd: do not expose HWCR.TscFreqSel to guests Roger Pau Monne
2023-09-12 16:35 ` Andrew Cooper
2023-09-12 16:36 ` Andrew Cooper
2023-09-13 8:08 ` Roger Pau Monné
2023-09-13 10:11 ` Andrew Cooper
2023-09-13 6:18 ` Jan Beulich
2023-09-13 8:50 ` Roger Pau Monné
2023-09-13 11:02 ` [Xen PATCH] " Andrew Cooper
2023-09-13 13:37 ` Jan Beulich
2023-09-13 20:31 ` Thomas Gleixner
2023-09-13 7:50 ` [PATCH] " Roger Pau Monné
2023-09-13 10:50 ` Andrew Cooper
2023-09-13 13:27 ` Jan Beulich
2023-09-13 6:14 ` Jan Beulich [this message]
2023-09-13 8:20 ` Roger Pau Monné
2023-09-13 8:35 ` Jan Beulich
2023-09-13 9:16 ` Roger Pau Monné
2023-09-13 9:40 ` Jan Beulich
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=809ef122-7060-c033-e50d-6e372ab89de9@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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.