From: Marc Zyngier <maz@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>,
James Morse <james.morse@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>, Joey Gouly <joey.gouly@arm.com>,
linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] KVM: arm64: Control visibility of S1PIE related sysregs to userspace
Date: Wed, 21 Aug 2024 14:46:25 +0100 [thread overview]
Message-ID: <86ed6ixa32.wl-maz@kernel.org> (raw)
In-Reply-To: <20240821-kvm-arm64-hide-pie-regs-v1-0-08cb3c79cb57@kernel.org>
On Wed, 21 Aug 2024 14:07:14 +0100,
Mark Brown <broonie@kernel.org> wrote:
>
> While looking at the KVM system register code I noticed that we do not
> have visibility operations for TCR2 or the S1PIE registers, I may be
> missing some reason why they are not required but in case I'm not I
> figured the most direct way to ask was to propose adding the operations.
>
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
> Mark Brown (2):
> KVM: arm64: Hide TCR2_EL1 from userspace when disabled for guests
> KVM: arm64: Hide S1PIE registers from userspace when disabled for guests
>
> arch/arm64/include/asm/kvm_host.h | 6 ++++++
> arch/arm64/kvm/sys_regs.c | 31 ++++++++++++++++++++++++++-----
> 2 files changed, 32 insertions(+), 5 deletions(-)
If you are going to do this, please add it on top of [1], and handle
the corresponding EL2 registers.
Thanks,
M.
[1] https://lore.kernel.org/20240813144738.2048302-1-maz@kernel.org
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2024-08-21 13:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 13:07 [PATCH 0/2] KVM: arm64: Control visibility of S1PIE related sysregs to userspace Mark Brown
2024-08-21 13:07 ` [PATCH 1/2] KVM: arm64: Hide TCR2_EL1 from userspace when disabled for guests Mark Brown
2024-08-21 13:07 ` [PATCH 2/2] KVM: arm64: Hide S1PIE registers " Mark Brown
2024-08-21 13:46 ` Marc Zyngier [this message]
2024-08-21 14:01 ` [PATCH 0/2] KVM: arm64: Control visibility of S1PIE related sysregs to userspace Mark Brown
2024-08-21 14:45 ` Marc Zyngier
2024-08-21 15:19 ` Mark Brown
2024-08-21 16:40 ` Marc Zyngier
2024-08-22 15:30 ` Mark Brown
2024-08-22 17:44 ` Marc Zyngier
2024-08-28 15:10 ` Mark Brown
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=86ed6ixa32.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=james.morse@arm.com \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oliver.upton@linux.dev \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.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).