From: Marc Zyngier <maz@kernel.org>
To: eric.auger@redhat.com
Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Catalin Marinas <catalin.marinas@arm.com>,
Mark Brown <broonie@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Will Deacon <will@kernel.org>,
Alexandru Elisei <alexandru.elisei@arm.com>,
Andre Przywara <andre.przywara@arm.com>,
Chase Conklin <chase.conklin@arm.com>,
Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>,
Darren Hart <darren@os.amperecomputing.com>,
Miguel Luis <miguel.luis@oracle.com>,
James Morse <james.morse@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Oliver Upton <oliver.upton@linux.dev>,
Zenghui Yu <yuzenghui@huawei.com>
Subject: Re: [PATCH v2 21/26] KVM: arm64: nv: Add trap forwarding for HDFGxTR_EL2
Date: Mon, 07 Aug 2023 20:00:12 +0100 [thread overview]
Message-ID: <867cq665kz.wl-maz@kernel.org> (raw)
In-Reply-To: <e9f78d51-e463-6adb-4ae6-96d14950bd25@redhat.com>
Hi Eric,
On Mon, 07 Aug 2023 18:19:16 +0100,
Eric Auger <eric.auger@redhat.com> wrote:
>
> Hi Marc,
> On 7/28/23 10:29, Marc Zyngier wrote:
> > ... and finally, the Debug version of FGT, with its *enormous*
> > list of trapped registers.
> >
> > Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> > Reviewed-by: Eric Auger <eric.auger@redhat.com>
> Hi Marc, I think you mixed up with the R-b's sent on
> [PATCH v2 06/26] arm64: Add debug registers affected by HDFGxTR_EL2
Most probably. Really sorry about that. I'll fix that right away.
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
> > ---
> > arch/arm64/include/asm/kvm_arm.h | 11 +
> > arch/arm64/kvm/emulate-nested.c | 460 +++++++++++++++++++++++++++++++
[...]
> > + SR_FGT(SYS_TRCIMSPEC0, HDFGRTR, TRCIMSPECn, 1),
> why not SYS_TRCIMSPEC(0)?
Yup, it's been mentioned a couple of time already, now fixed.
> > + SR_FGT(SYS_TRCIMSPEC(1), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCIMSPEC(2), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCIMSPEC(3), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCIMSPEC(4), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCIMSPEC(5), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCIMSPEC(6), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCIMSPEC(7), HDFGRTR, TRCIMSPECn, 1),
> > + SR_FGT(SYS_TRCDEVARCH, HDFGRTR, TRCID, 1),
> > + SR_FGT(SYS_TRCDEVID, HDFGRTR, TRCID, 1),
> what about all of the TRCIDR regs refered to in the spec?
Ah, nothing escapes you! Yup totally missed it, now added.
[...]
> > + SR_FGT(SYS_TRCRSCTLR(2), HDFGRTR, TRC, 1),y
> > + SR_FGT(SYS_TRCRSCTLR(3), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(4), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(5), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(6), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(7), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(8), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(9), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(10), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(11), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(12), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(13), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(14), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(15), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(16), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(17), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(18), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(19), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(20), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(21), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(22), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(23), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(24), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(25), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(26), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(27), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(28), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(29), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(30), HDFGRTR, TRC, 1),
> > + SR_FGT(SYS_TRCRSCTLR(31), HDFGRTR, TRC, 1),y
> > + SR_FGT(SYS_TRCQCTLR, HDFGRTR, TRC, 1),
> nit: maybe put this one before the
>
> SYS_TRCRSCTLR(n) series to follow the spec order
Done.
[...]
> > + /*
> > + * HDFGWTR_EL2
> > + *
> > + * Although HDFGRTR_EL2 and HDFGWTR_EL2 registers largely
> > + * overlap in their bit assignment, there are a number of bits
> > + * that are RES0 on one side, and an actual trap bit on the
> > + * other. The policy chosen here is to describe all the
> > + * read-side mappings, and only the write-side mappings that
> > + * differ from the write side, and the trap handler will pick
> differ from the read side?
Well spotted! Now fixed.
Thanks again!
M.
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2023-08-07 19:00 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 8:29 [PATCH v2 00/26] KVM: arm64: NV trap forwarding infrastructure Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 01/26] arm64: Add missing VA CMO encodings Marc Zyngier
2023-07-28 10:47 ` Miguel Luis
2023-07-28 14:11 ` Catalin Marinas
2023-07-31 14:27 ` Zenghui Yu
2023-07-28 8:29 ` [PATCH v2 02/26] arm64: Add missing ERX*_EL1 encodings Marc Zyngier
2023-07-28 11:02 ` Miguel Luis
2023-07-28 14:12 ` Catalin Marinas
2023-07-31 14:27 ` Zenghui Yu
2023-07-28 8:29 ` [PATCH v2 03/26] arm64: Add missing DC ZVA/GVA/GZVA encodings Marc Zyngier
2023-07-28 11:20 ` Miguel Luis
2023-07-28 14:12 ` Catalin Marinas
2023-07-31 14:27 ` Zenghui Yu
2023-07-28 8:29 ` [PATCH v2 04/26] arm64: Add TLBI operation encodings Marc Zyngier
2023-07-28 14:13 ` Catalin Marinas
2023-07-28 14:25 ` Marc Zyngier
2023-07-28 15:49 ` Miguel Luis
2023-07-31 14:27 ` Zenghui Yu
2023-07-28 8:29 ` [PATCH v2 05/26] arm64: Add AT " Marc Zyngier
2023-07-28 14:13 ` Catalin Marinas
2023-07-31 9:55 ` Miguel Luis
2023-07-31 14:27 ` Zenghui Yu
2023-07-28 8:29 ` [PATCH v2 06/26] arm64: Add debug registers affected by HDFGxTR_EL2 Marc Zyngier
2023-07-28 14:14 ` Catalin Marinas
2023-07-31 16:41 ` Miguel Luis
2023-08-02 17:52 ` Marc Zyngier
2023-08-03 0:00 ` Miguel Luis
2023-08-07 12:40 ` Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 07/26] arm64: Add missing BRB/CFP/DVP/CPP instructions Marc Zyngier
2023-07-28 14:14 ` Catalin Marinas
2023-07-28 8:29 ` [PATCH v2 08/26] arm64: Add HDFGRTR_EL2 and HDFGWTR_EL2 layouts Marc Zyngier
2023-07-28 14:15 ` Catalin Marinas
2023-08-02 9:08 ` Miguel Luis
2023-07-28 8:29 ` [PATCH v2 09/26] arm64: Add feature detection for fine grained traps Marc Zyngier
2023-07-31 14:27 ` Zenghui Yu
2023-08-02 11:54 ` Miguel Luis
2023-07-28 8:29 ` [PATCH v2 10/26] KVM: arm64: Correctly handle ACCDATA_EL1 traps Marc Zyngier
2023-08-03 13:55 ` Miguel Luis
2023-07-28 8:29 ` [PATCH v2 11/26] KVM: arm64: Add missing HCR_EL2 trap bits Marc Zyngier
2023-08-04 13:57 ` Miguel Luis
2023-07-28 8:29 ` [PATCH v2 12/26] KVM: arm64: nv: Add FGT registers Marc Zyngier
2023-08-04 14:56 ` Miguel Luis
2023-07-28 8:29 ` [PATCH v2 13/26] KVM: arm64: Restructure FGT register switching Marc Zyngier
2023-07-28 17:23 ` Eric Auger
2023-07-28 17:26 ` Oliver Upton
2023-08-07 10:15 ` Miguel Luis
2023-07-28 8:29 ` [PATCH v2 14/26] KVM: arm64: nv: Add trap forwarding infrastructure Marc Zyngier
2023-07-28 18:33 ` Oliver Upton
2023-07-29 9:19 ` Marc Zyngier
2023-07-31 17:02 ` Oliver Upton
2023-07-28 8:29 ` [PATCH v2 15/26] KVM: arm64: nv: Add trap forwarding for HCR_EL2 Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 16/26] KVM: arm64: nv: Expose FEAT_EVT to nested guests Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 17/26] KVM: arm64: nv: Add trap forwarding for MDCR_EL2 Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 18/26] KVM: arm64: nv: Add trap forwarding for CNTHCTL_EL2 Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 19/26] KVM: arm64: nv: Add trap forwarding for HFGxTR_EL2 Marc Zyngier
2023-07-28 18:47 ` Oliver Upton
2023-07-29 9:20 ` Marc Zyngier
2023-08-07 13:14 ` Eric Auger
2023-07-28 8:29 ` [PATCH v2 20/26] KVM: arm64: nv: Add trap forwarding for HFGITR_EL2 Marc Zyngier
2023-08-07 13:30 ` Eric Auger
2023-07-28 8:29 ` [PATCH v2 21/26] KVM: arm64: nv: Add trap forwarding for HDFGxTR_EL2 Marc Zyngier
2023-08-07 17:19 ` Eric Auger
2023-08-07 19:00 ` Marc Zyngier [this message]
2023-07-28 8:29 ` [PATCH v2 22/26] KVM: arm64: nv: Add SVC trap forwarding Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 23/26] KVM: arm64: nv: Add switching support for HFGxTR/HDFGxTR Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 24/26] KVM: arm64: nv: Expose FGT to nested guests Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 25/26] KVM: arm64: Move HCRX_EL2 switch to load/put on VHE systems Marc Zyngier
2023-07-28 8:29 ` [PATCH v2 26/26] KVM: arm64: nv: Add support for HCRX_EL2 Marc Zyngier
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=867cq665kz.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=alexandru.elisei@arm.com \
--cc=andre.przywara@arm.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=chase.conklin@arm.com \
--cc=darren@os.amperecomputing.com \
--cc=eric.auger@redhat.com \
--cc=gankulkarni@os.amperecomputing.com \
--cc=james.morse@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=miguel.luis@oracle.com \
--cc=oliver.upton@linux.dev \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.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 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).