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
F154859217: D30832.id91201.diff
Wed, Apr 29, 3:11 PM
F154858749: D30832.id91201.diff
Wed, Apr 29, 3:10 PM
F154857086: D30832.id91201.diff
Wed, Apr 29, 3:05 PM
F154724739: D30832.id91143.diff
Wed, Apr 29, 7:51 AM
Unknown Object (File)
Sat, Apr 25, 9:51 AM
Unknown Object (File)
Thu, Apr 16, 4:43 AM
Unknown Object (File)
Wed, Apr 15, 10:33 AM
Unknown Object (File)
Wed, Apr 15, 10:26 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