]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c
ArmPkg/ArmMmuLib: don't replace table entries with block entries
authorArd Biesheuvel <ardb@kernel.org>
Sun, 3 Jul 2022 07:29:26 +0000 (09:29 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 19 Oct 2022 09:07:13 +0000 (09:07 +0000)
commitab644cfac595608f5c8a65531e410d25f0e94c61
treede510cf87bd9570b0a45fedb59212456eb36abc2
parent0f6eccdbf75885631221388d362417eb7b873ce0
ArmPkg/ArmMmuLib: don't replace table entries with block entries

Drop the optimization that replaces table entries with block entries and
frees the page tables in the subhierarchy that is being replaced. This
rarely occurs in practice anyway, and will require more elaborate TLB
maintenance once we switch to a different approach where we no longer
disable the MMU and nuke the TLB entirely every time we update a
descriptor in a way that requires break-before-make (BBM).

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c