Page MenuHomeFreeBSD

arm64: Use page_to_pvh() instead of pa_to_pvh() when the vm_page_t is known
ClosedPublic

Authored by alc on Jun 20 2021, 6:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 5 2024, 4:55 AM
Unknown Object (File)
Dec 17 2023, 10:23 AM
Unknown Object (File)
Nov 1 2023, 2:24 AM
Unknown Object (File)
Oct 28 2023, 3:19 AM
Unknown Object (File)
Sep 20 2023, 10:23 AM
Unknown Object (File)
Jul 15 2023, 7:49 AM
Unknown Object (File)
Jul 13 2023, 2:55 AM
Unknown Object (File)
Apr 26 2023, 4:11 AM
Subscribers

Details

Summary

When support for a sparse pv_table was added, the implementation of pa_to_pvh() changed from a simple constant-time calculation to iterating over the vm_phys_segs array. To mitigate this issue, an alternative function, page_to_pvh(), was introduced that still runs in constant time but requires the vm_page_t to be known. However, three cases where the vm_page_t is known were not converted to page_to_pvh(). This change converts those cases.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable