Public bug reported:

This series was recently merged to linux-next and is targeting v6.20. We
need it in linux-nvidia-6.17 for Vera support.

It adds support for Armv8.7 FEAT_{LS64, LS64_V}:

Add identifying and enabling in the cpufeature list
Expose the support of FEAT_LS64 to userspace through HWCAP3 and cpuinfo
Add related hwcap test
Handle the trap of unsupported memory (normal/uncacheable) access in a VM

Lore: 
https://lore.kernel.org/all/[email protected]/
linux-next:
f174a9ffcd48 KVM: arm64: Add exit to userspace on {LD,ST}64B* outside of 
memslots
902eebac8fa3 KVM: arm64: Add documentation for KVM_EXIT_ARM_LDST64B
2937aeec9dc5 KVM: arm64: Handle DABT caused by LS64* instructions on 
unsupported memory
dea58da4b6fe arm64: Provide basic EL2 setup for FEAT_{LS64, LS64_V} usage at 
EL0/1
151b92c92a45 KVM: arm64: Enable FEAT_{LS64, LS64_V} in the supported guest
58ce78667a64 arm64: Add support for FEAT_{LS64, LS64_V}
57a96356bb69 kselftest/arm64: Add HWCAP test for FEAT_LS64
Also included in this PR is the "VMM can handle guest SEA via KVM_EXIT_ARM_SEA” 
series from v6.19 to ease picking and because this series will also need to be 
backported in the future to support nvgrace ECC.

Note: This same series was also included in a recent PR (PR 287) that
has not been merged yet. So depending on when that is merged in relation
to this series, those patches may already be present on the main branch.

Lore: 
https://lore.kernel.org/kvmarm/[email protected]/
v6.19:
ad9c62bd8946 KVM: arm64: VM exit to userspace to handle SEA
feee9ef7ac16 KVM: selftests: Test for KVM_EXIT_ARM_SEA
4debb5e8952e Documentation: kvm: new UAPI for handling SEA


Tested the following:
Kernel detects LS64 hardware support (ID_AA64ISAR1_EL1[63:60])
Kernel exposes HWCAP3_LS64 flag to userspace
Kernel adds ls64 to /proc/cpuinfo
Kernel enables instructions (SCTLR_EL1.EnALS, HCRX_EL2.EnALS)
LD64B/ST64B execute without SIGILL on supported hardware
Instructions correctly SIGBUS on normal memory (without FEAT_LS64_WB)
No false positives (doesn't expose LS64 when hardware lacks it)

** Affects: linux-nvidia (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139248

Title:
  Backport support for FEAT_LS64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2139248/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to