From: Marc Zyngier <maz@kernel.org>
To: Justin He <Justin.He@arm.com>
Cc: "sashiko-reviews@lists.linux.dev"
<sashiko-reviews@lists.linux.dev>,
"kvmarm@lists.linux.dev" <kvmarm@lists.linux.dev>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
Oliver Upton <oupton@kernel.org>, nd <nd@arm.com>
Subject: Re: [PATCH v4 4/4] KVM: arm64: nv: Allow the L1 VNCR page in cacheable PFNMAP memory
Date: Sat, 05 Dec 2026 09:32:04 +0000 [thread overview]
Message-ID: <86se0cvzsb.wl-maz@kernel.org> (raw)
In-Reply-To: <AS2PR08MB9786838D0866B12FABFBFB2BF7492@AS2PR08MB9786.eurprd08.prod.outlook.com>
On Sat, 05 Dec 2026 01:32:34 +0000,
Justin He <Justin.He@arm.com> wrote:
>
> > -----Original Message-----
> > From: Marc Zyngier <maz@kernel.org>
> [...]
> > > Fair point. The goal is strictly cacheable memory outside the linear
> > > map that the guest uses as RAM, not device MMIO, and I agree that
> > > getting a device mapping wrong on the EL2 fixmap path is not
> > > acceptable.
> > >
> > > Let's drop patch 4 from this series so patches 1-3 (the fixmap offset
> > > fix, the AF update SEA fix, and the selftest) can move forward on
> > > their own. I'll send v5 with just those three patches if you agree.
> >
> > I can take those first three patches right as they are, no need to resend.
> >
> > > If we revisit non-linear-map cacheable RAM for VNCR later, would you
> > > prefer an explicit opt-in from the backing memory (similar to
> > > VM_MTE_ALLOWED) to rule out arbitrary devices, or should VNCR stay
> > > restricted to memory with a linear map / struct page?
> >
> > The issue is to distinguish RAM from devices when the only thing we
> > have for that purpose is a userspace PTE and no notion of which is
> > what. Do you see any reliable way to distinguish those? They are both
> > flagged PTE_SPECIAL, but that's about it.
> >
> > I'm not sure what a new flag gives us, to be honest. Ideally, what I'd
> > really want is a PTE bit saying "this is memory" or "this is a
> > device". But we only have the attributes for this, and I'm worried
> > this is not enough...
>
> Makes sense, thanks!
> Since I'd also like to fold in the small selftest fixes Sashiko pointed
> out on patch 3 (test_supports_el2(), preserving errno, and SIGALRM
> handling), I'm inclined to send a quick 3-patch v5 with just patches 1-3.
> Unless you think those fixes aren't worth a respin on their own?
Sure, do a v5. There are so many broken things at the moment that it
really doesn't matter much.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
prev parent reply other threads:[~2026-12-05 9:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 10:58 [PATCH v4 0/4] KVM: arm64: nv: VNCR page mapping fixes Jia He
2026-12-03 10:58 ` [PATCH v4 1/4] KVM: arm64: nv: Locate the VNCR page in the host page from its PA Jia He
2026-12-03 10:58 ` [PATCH v4 2/4] KVM: arm64: nv: Inject an SEA when the VNCR walk cannot set the AF Jia He
2026-12-03 10:58 ` [PATCH v4 3/4] KVM: arm64: selftests: Add a test for VNCR_EL2 translation faults Jia He
2026-12-03 11:16 ` sashiko-bot
2026-12-04 1:46 ` Justin He
2026-12-04 9:12 ` Marc Zyngier
2026-12-04 9:51 ` Justin He
2026-12-03 10:58 ` [PATCH v4 4/4] KVM: arm64: nv: Allow the L1 VNCR page in cacheable PFNMAP memory Jia He
2026-12-03 11:16 ` sashiko-bot
2026-12-04 2:59 ` Justin He
2026-12-04 10:24 ` Marc Zyngier
2026-12-04 11:34 ` Justin He
2026-12-04 16:31 ` Marc Zyngier
2026-12-05 1:32 ` Justin He
2026-12-05 9:32 ` Marc Zyngier [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=86se0cvzsb.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=Justin.He@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=nd@arm.com \
--cc=oupton@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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