]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only demote when needed in the arm64 pmap_change_props_locked
authorAndrew Turner <andrew@FreeBSD.org>
Wed, 6 Oct 2021 16:38:22 +0000 (17:38 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 11 Oct 2021 09:29:44 +0000 (10:29 +0100)
commit806a88e742002b0e82a4ea06f8e147f627947c2c
treeb06e9b652dc2fa81cf4591252354f568a1d9c40d
parenta85ce4ad7272ffa4b4649b0ed463341b743e815f
Only demote when needed in the arm64 pmap_change_props_locked

When changing page table properties there is no need to demote a
level 1 or level 2 block if we are changing the entire memory range the
block is mapping. In this case just change the block directly.

Reported by: alc, kib, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32339
sys/arm64/arm64/pmap.c