]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64 pmap: handle fictitious mappigns with addresses beyond pv_table
authormjg <mjg@FreeBSD.org>
Fri, 11 Oct 2019 14:57:47 +0000 (14:57 +0000)
committermjg <mjg@FreeBSD.org>
Fri, 11 Oct 2019 14:57:47 +0000 (14:57 +0000)
commitbd2df1a0b7329fab5a9e87b9a644e4fca68eb6dc
tree7d442ccbfdd210b5777676784a5470e88b0342d0
parent2f6dd9290ada49e5de4c420bcba0ce00b75c5f1d
amd64 pmap: handle fictitious mappigns with addresses beyond pv_table

There are provisions to do it already with pv_dummy, but new locking code
did not account for it. Previous one did not have the problem because
it hashed the address into the lock array.

While here annotate common vars with __read_mostly and __exclusive_cache_line.

Reported by: Thomas Laus
Tesetd by: jkim, Thomas Laus
Fixes: r353149 ("amd64 pmap: implement per-superpage locks")
Sponsored by: The FreeBSD Foundation
sys/amd64/amd64/pmap.c