]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64: Ignore 1GB mappings in pmap_advise()
authorMark Johnston <markj@FreeBSD.org>
Sat, 24 Sep 2022 13:20:48 +0000 (09:20 -0400)
committerMark Johnston <markj@FreeBSD.org>
Sat, 24 Sep 2022 13:28:41 +0000 (09:28 -0400)
commit4551cbbe9906812556501c541fef0d88b0398b27
treef0adf4c7da342f8f750f27c4f6823db32332af88
parent6c2e9f4c32a44f3c239aba346322d871097eaed0
amd64: Ignore 1GB mappings in pmap_advise()

This assertion can be triggered by usermode since vm_map_madvise()
doesn't force advice to be applied to an entire largepage mapping.  I
can't see any reason not to permit it, however, since MADV_DONTNEED and
_FREE are advisory and we can simply do nothing when a 1GB mapping is
encountered.

Reviewed by: alc, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36675
sys/amd64/amd64/pmap.c