From: Fuad Tabba <fuad.tabba@linux.dev>
To: Marc Zyngier <maz@kernel.org>, Oliver Upton <oupton@kernel.org>,
kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org
Cc: Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Steffen Eiden <seiden@linux.ibm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Vincent Donnefort <vdonnefort@google.com>,
Fuad Tabba <tabba@google.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 00/20] KVM: arm64: Support debug, SVE, MOPS, PIE/POE, FPMR and more in protected VMs
Date: Wed, 25 Nov 2026 15:38:51 +0000 [thread overview]
Message-ID: <20261125153911.106793-1-fuad.tabba@linux.dev> (raw)
Hi folks,
Changes since v1 [1]:
- Replaced the #ifdef around the feature map check with a WARN_ON().
(Oliver)
- Added two fixes, for ptrauth and MTE_frac.
- Added a patch advertising GICv3 to protected VMs on GICv5 hosts with
legacy support.
- Small fixes and tidying up.
- Rebased on 7.4-rc3.
With most of the groundwork merged, it's time to bring protected VMs up
to the features we support for them in Android.
01-02: Fixes for ptrauth and MTE_frac.
03: Self-hosted debug.
04-07: SVE, with EL2 owning a protected vCPU's SVE state.
08-11: Compute a protected vCPU's fine-grained traps at EL2.
12-20: Advertise TCR2, SCTLR2, S1PIE, S1POE, MOPS, FPMR and the
features EL2 already handles for non-protected guests.
Tested on QEMU, in hVHE and nVHE, and on FVP for S1POE, GICv5 in legacy
mode and the fields QEMU doesn't model (CLRBHB, RPRFM, ECBHB, LSFE,
LSUI, HAFT, ETS3 and F16MM). v2 of the pKVM selftests series [2] covers
debug, SVE, MOPS, PIE, POE and FPMR.
Based on Linux 7.4-rc3 (aebb727447640).
Cheers,
/fuad
[1] https://lore.kernel.org/all/20261109083205.806619-1-fuad.tabba@linux.dev/
[2] https://lore.kernel.org/all/20261109084854.840576-1-fuad.tabba@linux.dev/
Fuad Tabba (20):
KVM: arm64: Only allow ptrauth for a pVM on a system with full ptrauth
KVM: arm64: Don't advertise the host's MTE_frac to protected VMs
KVM: arm64: Add support for self-hosted debug in protected guests
KVM: arm64: Remove redundant kern_hyp_va() calls from the pKVM FP sync
KVM: arm64: Allocate a protected vCPU's SVE state at EL2
KVM: arm64: Advertise ID_AA64ZFR0_EL1 to protected VMs
KVM: arm64: Allow protected VMs to use SVE
KVM: arm64: Move the VM's FGU initialisation into config.c
KVM: arm64: Report an incomplete feature map with WARN_ON()
KVM: arm64: Advertise the GICv3 CPU interface to protected VMs on
GICv5
KVM: arm64: Compute a protected vCPU's fine-grained traps at EL2
KVM: arm64: Advertise TCR2, SCTLR2, S1PIE and S1POE to protected VMs
KVM: arm64: Advertise MOPS to protected VMs
KVM: arm64: Advertise FPMR to protected VMs
KVM: arm64: Advertise HBC, CLRBHB, RPRFM, CSSC and LUT to protected
VMs
KVM: arm64: Advertise FAMINMAX, LSFE, LSUI and FPRCVT to protected VMs
KVM: arm64: Advertise AFP and RPRES to protected VMs
KVM: arm64: Advertise ECBHB, TIDCP1, TTST and LVA to protected VMs
KVM: arm64: Advertise FP8 and F16MM to protected VMs
KVM: arm64: Advertise ECV, HAFT and ETS3 to protected VMs
Documentation/virt/kvm/arm/pkvm.rst | 13 +-
arch/arm64/include/asm/kvm_host.h | 2 +-
arch/arm64/include/asm/kvm_hyp.h | 6 +
arch/arm64/include/asm/kvm_pkvm.h | 12 +-
arch/arm64/kvm/arm.c | 11 +
arch/arm64/kvm/config.c | 24 +-
arch/arm64/kvm/hyp/include/hyp/switch.h | 2 +-
arch/arm64/kvm/hyp/include/nvhe/pkvm.h | 1 +
arch/arm64/kvm/hyp/nvhe/Makefile | 4 +-
arch/arm64/kvm/hyp/nvhe/hyp-main.c | 6 +-
arch/arm64/kvm/hyp/nvhe/pkvm.c | 51 ++--
arch/arm64/kvm/hyp/nvhe/switch.c | 1 +
arch/arm64/kvm/hyp/nvhe/sys_regs.c | 350 ++++++++++++++++++++++--
arch/arm64/kvm/reset.c | 2 +
arch/arm64/kvm/sys_regs.c | 17 +-
15 files changed, 423 insertions(+), 79 deletions(-)
base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
--
2.47.3
next reply other threads:[~2026-11-25 15:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 15:38 Fuad Tabba [this message]
2026-11-25 15:38 ` [PATCH v2 01/20] KVM: arm64: Only allow ptrauth for a pVM on a system with full ptrauth Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 02/20] KVM: arm64: Don't advertise the host's MTE_frac to protected VMs Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 03/20] KVM: arm64: Add support for self-hosted debug in protected guests Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 04/20] KVM: arm64: Remove redundant kern_hyp_va() calls from the pKVM FP sync Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 05/20] KVM: arm64: Allocate a protected vCPU's SVE state at EL2 Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 06/20] KVM: arm64: Advertise ID_AA64ZFR0_EL1 to protected VMs Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 07/20] KVM: arm64: Allow protected VMs to use SVE Fuad Tabba
2026-11-25 15:38 ` [PATCH v2 08/20] KVM: arm64: Move the VM's FGU initialisation into config.c Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 09/20] KVM: arm64: Report an incomplete feature map with WARN_ON() Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 10/20] KVM: arm64: Advertise the GICv3 CPU interface to protected VMs on GICv5 Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 11/20] KVM: arm64: Compute a protected vCPU's fine-grained traps at EL2 Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 12/20] KVM: arm64: Advertise TCR2, SCTLR2, S1PIE and S1POE to protected VMs Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 13/20] KVM: arm64: Advertise MOPS " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 14/20] KVM: arm64: Advertise FPMR " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 15/20] KVM: arm64: Advertise HBC, CLRBHB, RPRFM, CSSC and LUT " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 16/20] KVM: arm64: Advertise FAMINMAX, LSFE, LSUI and FPRCVT " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 17/20] KVM: arm64: Advertise AFP and RPRES " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 18/20] KVM: arm64: Advertise ECBHB, TIDCP1, TTST and LVA " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 19/20] KVM: arm64: Advertise FP8 and F16MM " Fuad Tabba
2026-11-25 15:39 ` [PATCH v2 20/20] KVM: arm64: Advertise ECV, HAFT and ETS3 " Fuad Tabba
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=20261125153911.106793-1-fuad.tabba@linux.dev \
--to=fuad.tabba@linux.dev \
--cc=catalin.marinas@arm.com \
--cc=joey.gouly@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=seiden@linux.ibm.com \
--cc=suzuki.poulose@arm.com \
--cc=tabba@google.com \
--cc=vdonnefort@google.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
all inboxes | Powered by JetHome®