From: Marc Zyngier <maz@kernel.org>
To: Yeoreum Yun <yeoreum.yun@arm.com>
Cc: catalin.marinas@arm.com, pcc@google.com, will@kernel.org,
broonie@kernel.org, anshuman.khandual@arm.com,
joey.gouly@arm.com, oliver.upton@linux.dev, frederic@kernel.org,
hardevsinh.palaniya@siliconsignals.io, samuel.holland@sifive.com,
palmer@rivosinc.com, charlie@rivosinc.com,
thiago.bauermann@linaro.org, bgray@linux.ibm.com,
tglx@linutronix.de, puranjay@kernel.org, david@redhat.com,
yang@os.amperecomputing.com, mbenes@suse.cz,
joel.granados@kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 5/8] arm64/kvm: expose MTE_STORE_ONLY feature to guest
Date: Wed, 02 Jul 2025 18:12:56 +0100 [thread overview]
Message-ID: <86ecuybjon.wl-maz@kernel.org> (raw)
In-Reply-To: <20250618092957.2069907-6-yeoreum.yun@arm.com>
On Wed, 18 Jun 2025 10:29:54 +0100,
Yeoreum Yun <yeoreum.yun@arm.com> wrote:
>
> expose MTE_STORE_ONLY feature to guest.
>
> Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
> ---
> arch/arm64/kvm/sys_regs.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
> index c8c92cb9da01..7bc99ed201eb 100644
> --- a/arch/arm64/kvm/sys_regs.c
> +++ b/arch/arm64/kvm/sys_regs.c
> @@ -1620,7 +1620,8 @@ static u64 __kvm_read_sanitised_id_reg(const struct kvm_vcpu *vcpu,
> mask = ID_AA64PFR2_EL1_FPMR;
>
> if (kvm_has_mte(vcpu->kvm))
> - mask |= ID_AA64PFR2_EL1_MTEFAR;
> + mask |= ID_AA64PFR2_EL1_MTEFAR |
> + ID_AA64PFR2_EL1_MTESTOREONLY;
>
> val &= mask;
> break;
> @@ -2884,7 +2885,8 @@ static const struct sys_reg_desc sys_reg_descs[] = {
> ID_AA64PFR1_EL1_MTE)),
> ID_WRITABLE(ID_AA64PFR2_EL1,
> ID_AA64PFR2_EL1_FPMR |
> - ID_AA64PFR2_EL1_MTEFAR),
> + ID_AA64PFR2_EL1_MTEFAR |
> + ID_AA64PFR2_EL1_MTESTOREONLY),
> ID_UNALLOCATED(4,3),
> ID_WRITABLE(ID_AA64ZFR0_EL1, ~ID_AA64ZFR0_EL1_RES0),
> ID_HIDDEN(ID_AA64SMFR0_EL1),
With the subject line fixed:
Acked-by: Marc Zyngier <maz@kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2025-07-02 17:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 9:29 [PATCH v7 0/8] support FEAT_MTE_STORE_ONLY feature Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 1/8] arm64/cpufeature: add MTE_STORE_ONLY feature Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 2/8] prctl: introduce PR_MTE_STORE_ONLY Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 3/8] arm64/kernel: support store-only mte tag check Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 4/8] arm64/hwcaps: add MTE_STORE_ONLY hwcaps Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 5/8] arm64/kvm: expose MTE_STORE_ONLY feature to guest Yeoreum Yun
2025-07-02 17:12 ` Marc Zyngier [this message]
2025-06-18 9:29 ` [PATCH v7 6/8] kselftest/arm64/abi: add MTE_STORE_ONLY feature hwcap test Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 7/8] kselftest/arm64/mte: preparation for mte store only test Yeoreum Yun
2025-06-18 9:29 ` [PATCH v7 8/8] kselftest/arm64/mte: add MTE_STORE_ONLY testcases Yeoreum Yun
2025-07-02 18:34 ` [PATCH v7 0/8] support FEAT_MTE_STORE_ONLY feature 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=86ecuybjon.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=anshuman.khandual@arm.com \
--cc=bgray@linux.ibm.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=charlie@rivosinc.com \
--cc=david@redhat.com \
--cc=frederic@kernel.org \
--cc=hardevsinh.palaniya@siliconsignals.io \
--cc=joel.granados@kernel.org \
--cc=joey.gouly@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=oliver.upton@linux.dev \
--cc=palmer@rivosinc.com \
--cc=pcc@google.com \
--cc=puranjay@kernel.org \
--cc=samuel.holland@sifive.com \
--cc=tglx@linutronix.de \
--cc=thiago.bauermann@linaro.org \
--cc=will@kernel.org \
--cc=yang@os.amperecomputing.com \
--cc=yeoreum.yun@arm.com \
/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.