[RFC v2 00/13] arm64: Add support for TLBI domains

Kristina Martšenko kristina.martsenko at arm.com
Thu Nov 26 03:49:23 PST 2026


Hi,

This is a follow-up to the initial TLBI domain RFC:
  https://lore.kernel.org/all/20261001110655.461473-1-kristina.martsenko@arm.com/

The goal of the series is to improve performance by using TLBI domains
(FEAT_TLBID) to send TLB invalidations only to the CPUs where a process has
run. (Specifically, TLBI commands are sent to a fixed “domain”, which may be
wider than the set of target CPUs.)

This RFC v2 addresses review feedback from the previous RFC v1. It is still an
RFC because the ACPI table specification is still not public, so this series
can't be merged yet.

The series does not include KVM support, it only disables domains for guests.
KVM support has been posted by Jinqian [1].

Thanks,
Kristina

[1] https://lore.kernel.org/all/20261030065617.4090073-1-yangjinqian1@huawei.com/


Changes in RFC v2:
  - Made context-switch only update domains if they would change (and updated
    the barrier) [Zi]
  - Explained in commit message why mm_cpumask is not used [Zi]
  - Added WARN_ON to EFI init [Ard]
  - Split EL2 setup into a separate patch [Linu]
  - Fixed ipas2e1is() to use __tlbip() [Jinqian, sashiko]
  - Fixed memory leaks in error paths [Jinqian, sashiko]
  - Made ACPI table sanity checks more robust [sashiko]
  - Fixed 'tlbi' variable to be static [sashiko]
  - Fixed __tlbip() macro argument expansion [sashiko]
  - Link to RFC v1: https://lore.kernel.org/all/20261001110655.461473-1-kristina.martsenko@arm.com/


Kristina Martšenko (13):
  arm64: sysreg: Add definitions for TLBID
  arm64: boot: Handle TLBID boot requirements
  arm64: Detect TLBID
  KVM: arm64: Hide TLBID from guest sysregs
  KVM: arm64: Hide TLBID from guest instructions
  ACPICA: Add TLBI table definition
  ACPI: TLBI: Parse domains from table
  arm64: tlbid: Set up CPU domain bitmaps
  efi/arm: Check return value of init_new_context()
  arm64: tlbid: Track the TLBI domain of a task
  arm64: Support TLBIP instructions
  arm64: tlbid: Pass domain to TLBI instructions
  arm64: tlbid: Add documentation

 Documentation/arch/arm64/booting.rst    |  10 ++
 arch/arm64/Kconfig                      |  12 ++
 arch/arm64/include/asm/acpi.h           |  10 ++
 arch/arm64/include/asm/cpu.h            |   1 +
 arch/arm64/include/asm/cpufeature.h     |  15 ++
 arch/arm64/include/asm/el2_setup.h      |  77 +++++++-
 arch/arm64/include/asm/kvm_emulate.h    |   5 +
 arch/arm64/include/asm/mmu.h            |  13 ++
 arch/arm64/include/asm/mmu_context.h    |   9 +-
 arch/arm64/include/asm/tlbflush.h       | 218 +++++++++++++++++------
 arch/arm64/kernel/cpufeature.c          |  25 +++
 arch/arm64/kernel/cpuinfo.c             |   3 +
 arch/arm64/kvm/config.c                 |   6 +
 arch/arm64/kvm/emulate-nested.c         |   1 +
 arch/arm64/kvm/hyp/include/hyp/switch.h |   7 +-
 arch/arm64/kvm/hyp/nvhe/tlb.c           |   2 +-
 arch/arm64/kvm/hyp/vhe/tlb.c            |   4 +-
 arch/arm64/kvm/sys_regs.c               |   3 +
 arch/arm64/mm/Makefile                  |   1 +
 arch/arm64/mm/context.c                 |   6 +-
 arch/arm64/mm/tlbid.c                   | 227 ++++++++++++++++++++++++
 arch/arm64/tools/cpucaps                |   1 +
 arch/arm64/tools/sysreg                 |  53 +++++-
 drivers/acpi/arm64/Kconfig              |   3 +
 drivers/acpi/arm64/Makefile             |   1 +
 drivers/acpi/arm64/init.c               |   2 +
 drivers/acpi/arm64/init.h               |   1 +
 drivers/acpi/arm64/tlbi.c               | 217 ++++++++++++++++++++++
 drivers/firmware/efi/arm-runtime.c      |   3 +-
 include/acpi/actbl2.h                   |  32 ++++
 30 files changed, 897 insertions(+), 71 deletions(-)
 create mode 100644 arch/arm64/mm/tlbid.c
 create mode 100644 drivers/acpi/arm64/tlbi.c


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
-- 
2.43.0




More information about the linux-arm-kernel mailing list