[PATCH v2 0/2] arm64: Add KVM support for newer Apple Silicon CPUs

From: Michael Reeves via B4 Relay

Date: Tue Oct 20 2026 - 19:54:41 EST


Hi,

This series enables KVM support on Apple Silicon M3 (base, Pro and Max),
base M4, A18 Pro and M5 Pro CPUs.

The first patch adds the CPU part numbers and MIDR definitions.

The second patch adds these CPUs to the existing Apple Silicon PMU and
broken SEIS workarounds. It also enables TDIR detection so KVM can trap
guest DIR accesses without trapping all common registers.

This series was developed from testing on:
- Apple M3 and M3 Pro by Michael Reeves
- Apple M3 Max by Myria Sarvay and Yureka Lilian
- Apple M4, A18 Pro and M5 Pro by Yureka Lilian

These tests also confirmed that the SEIS workaround is still needed.

---
Changes in v2:
- Add A18 Pro and M5 CPU IDs and workaround coverage.
- Add all to has_vgic_v3 for TDIR detection
- Document testing confirming SEIS workaround still needed
- Link to v1:
https://patch.msgid.link/20261008-apple-m3-m4-kvm-v1-0-7bb4cbf3d63b@xxxxxxxxx

---
Michael Reeves (1):
arm64: Apply existing Apple Silicon CPU workarounds to newer CPUs

Myria Sarvay (1):
arm64: Add CPU part numbers for newer Apple Silicon CPUs

arch/arm64/include/asm/cputype.h | 28 ++++++++++++++++++++++++++++
arch/arm64/kernel/cpu_errata.c | 12 ++++++++++++
arch/arm64/kernel/cpufeature.c | 12 ++++++++++++
3 files changed, 52 insertions(+)
---
base-commit: a90ee4305c4a5df72c11b31dacfdc76e00fcf78a
change-id: 20261008-apple-m3-m4-kvm-b7b9b2e34bcd

Best regards,
--
Michael Reeves <michael.reeves077@xxxxxxxxx>