linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/5] KVM: arm64: Support for 2023 dpISA extensions
@ 2024-03-29  0:13 Mark Brown
  2024-03-29  0:13 ` [PATCH v6 1/5] KVM: arm64: Share all userspace hardened thread data with the hypervisor Mark Brown
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Mark Brown @ 2024-03-29  0:13 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Marc Zyngier, Oliver Upton,
	James Morse, Suzuki K Poulose, Jonathan Corbet, Shuah Khan
  Cc: linux-arm-kernel, linux-kernel, Dave Martin, kvmarm, linux-doc,
	linux-kselftest, Mark Brown

This series implements support for the 2023 dpISA extensions in KVM
guests, it was previously posted as part of a series with the host
support but that has now been merged so only the KVM portions remain.

Most of these extensions add only new instructions so the guest support
consists of adding the relevant ID registers, masking out other features
like the 2023 MTE extensions.  

FEAT_FPMR introduces a new system register FPMR to the floating point
state which we enable guest access to and context switch when the ID
registers indicate that it is supported.  Currently we implement
visibility for FPMR with a fpmr_visibility() function as for other
system registers, I will separately look into adding support for
specifying this in the struct sys_reg_desc.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Changes in v6:
- Rebase onto v6.9-rc1.
- The host portions of the series were merged so only the KVM guest
  support remains.
- Link to v5: https://lore.kernel.org/r/20240306-arm64-2023-dpisa-v5-0-c568edc8ed7f@kernel.org

Changes in v5:
- Rebase onto v6.8-rc3.
- Use u64 rather than unsigned long for storing FPMR.
- Temporarily drop KVM guest support due to issues with KVM being a
  moving target.
- Link to v4: https://lore.kernel.org/r/20240122-arm64-2023-dpisa-v4-0-776e094861df@kernel.org

Changes in v4:
- Rebase onto v6.8-rc1.
- Move KVM support to the end of the series.
- Link to v3: https://lore.kernel.org/r/20231205-arm64-2023-dpisa-v3-0-dbcbcd867a7f@kernel.org

Changes in v3:
- Rebase onto v6.7-rc3.
- Hook up traps for FPMR in emulate-nested.c.
- Link to v2: https://lore.kernel.org/r/20231114-arm64-2023-dpisa-v2-0-47251894f6a8@kernel.org

Changes in v2:
- Rebase onto v6.7-rc1.
- Link to v1: https://lore.kernel.org/r/20231026-arm64-2023-dpisa-v1-0-8470dd989bb2@kernel.org

---
Mark Brown (5):
      KVM: arm64: Share all userspace hardened thread data with the hypervisor
      KVM: arm64: Add newly allocated ID registers to register descriptions
      KVM: arm64: Support FEAT_FPMR for guests
      KVM: arm64: selftests: Document feature registers added in 2023 extensions
      KVM: arm64: selftests: Teach get-reg-list about FPMR

 arch/arm64/include/asm/kvm_host.h                  |  6 ++++--
 arch/arm64/include/asm/processor.h                 |  2 +-
 arch/arm64/kvm/emulate-nested.c                    |  9 ++++++++
 arch/arm64/kvm/fpsimd.c                            | 15 +++++++-------
 arch/arm64/kvm/hyp/include/hyp/switch.h            |  9 ++++++--
 arch/arm64/kvm/hyp/nvhe/hyp-main.c                 |  4 ++--
 arch/arm64/kvm/sys_regs.c                          | 24 +++++++++++++++++++---
 tools/testing/selftests/kvm/aarch64/get-reg-list.c | 11 ++++++++--
 8 files changed, 60 insertions(+), 20 deletions(-)
---
base-commit: 4cece764965020c22cff7665b18a012006359095
change-id: 20231003-arm64-2023-dpisa-2f3d25746474

Best regards,
-- 
Mark Brown <broonie@kernel.org>


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-04-10 21:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-29  0:13 [PATCH v6 0/5] KVM: arm64: Support for 2023 dpISA extensions Mark Brown
2024-03-29  0:13 ` [PATCH v6 1/5] KVM: arm64: Share all userspace hardened thread data with the hypervisor Mark Brown
2024-03-31 10:00   ` Marc Zyngier
2024-04-02 14:34     ` Mark Brown
2024-04-02 14:53       ` Marc Zyngier
2024-04-02 16:20         ` Mark Brown
2024-04-10  7:27           ` Marc Zyngier
2024-04-10 21:43             ` Mark Brown
2024-03-29  0:13 ` [PATCH v6 2/5] KVM: arm64: Add newly allocated ID registers to register descriptions Mark Brown
2024-03-31 10:59   ` Marc Zyngier
2024-04-02 17:21     ` Mark Brown
2024-04-10 10:32       ` Marc Zyngier
2024-04-10 16:33         ` Mark Brown
2024-03-29  0:13 ` [PATCH v6 3/5] KVM: arm64: Support FEAT_FPMR for guests Mark Brown
2024-03-29  0:13 ` [PATCH v6 4/5] KVM: arm64: selftests: Document feature registers added in 2023 extensions Mark Brown
2024-03-29  0:13 ` [PATCH v6 5/5] KVM: arm64: selftests: Teach get-reg-list about FPMR Mark Brown

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).