From: Catalin Marinas <catalin.marinas@arm.com>
To: Fuad Tabba <tabba@google.com>
Cc: Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Ben Horgan <ben.horgan@arm.com>,
James Morse <james.morse@arm.com>, Xi Ruoyao <xry111@xry111.site>,
Marc Zyngier <maz@kernel.org>,
Bradley Morgan <brads@mainlining.org>,
linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] arm64: mpam: Document when to set arm64.nompam
Date: Thu, 1 Oct 2026 17:00:15 +0100 [thread overview]
Message-ID: <ar6Dj_frEGFBGWY8@arm.com> (raw)
In-Reply-To: <CA+EHjTy6+JpcdwuP3wnxK9n2iR0REM7nFgxkLaS8RAOST4KY5g@mail.gmail.com>
On Mon, Sep 28, 2026 at 07:56:14AM +0100, Fuad Tabba wrote:
> On Tue, 8 Sept 2026 at 15:56, Fuad Tabba <fuad.tabba@linux.dev> wrote:
> > arm64.nompam skips the MPAM2_EL2 and MPAMHCR_EL2 writes in
> > finalise_el2_state and leaves the ARM64_MPAM cpucap unset. Where EL3
> > firmware has cleared MPAM3_EL3.TRAPLOWER, the EL2 trap controls are
> > left unwritten, at reset values that are UNKNOWN, and KVM still hides
> > MPAM from the guest but no longer enables the traps that stop a guest
> > from using it. KVM never saves or restores MPAM0_EL1, MPAM1_EL1 and
> > MPAMSM_EL1, so what one guest writes reaches the next guest and the
> > host. Nor can the kernel make the EL2 writes unconditionally: they trap
> > to EL3 on the firmware the option exists for, and TRAPLOWER cannot be
> > read below EL3.
> >
> > Say so in mpam.rst, and add the rule and a pointer to the
> > kernel-parameters entry.
>
> Gentle ping on this one; it has Ben's and Bradley's R-b. I think it
> still stands regardless of the other cpufeature work going on now.
> Anything else needed for it to go in?
Normally I expect a pull request from Ben or James but they rarely send
one in time ;). I'll apply it directly.
--
Catalin
next prev parent reply other threads:[~2026-10-01 16:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 14:56 Fuad Tabba
2026-09-25 9:26 ` Ben Horgan
2026-09-28 6:56 ` Fuad Tabba
2026-10-01 16:00 ` Catalin Marinas [this message]
2026-10-01 16:12 ` Catalin Marinas
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=ar6Dj_frEGFBGWY8@arm.com \
--to=catalin.marinas@arm.com \
--cc=ben.horgan@arm.com \
--cc=brads@mainlining.org \
--cc=corbet@lwn.net \
--cc=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=tabba@google.com \
--cc=will@kernel.org \
--cc=xry111@xry111.site \
/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
all inboxes | Powered by JetHome®