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)
Fri, Nov 1, 12:47 AM
Unknown Object (File)
Sep 30 2024, 1:41 PM
Unknown Object (File)
Sep 30 2024, 1:30 PM
Unknown Object (File)
Sep 30 2024, 1:30 PM
Unknown Object (File)
Sep 27 2024, 5:43 PM
Unknown Object (File)
Sep 27 2024, 3:55 PM
Unknown Object (File)
Sep 26 2024, 1:39 PM
Unknown Object (File)
Sep 23 2024, 11:35 PM
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

Lint
Lint Skipped
Unit
Tests Skipped