]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not access pv_table array for fictitious pages, since the array
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 13 Jun 2016 03:45:08 +0000 (03:45 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 13 Jun 2016 03:45:08 +0000 (03:45 +0000)
commitb9c8a54dc301b7036e821812c3c9c077614a58ef
treef7baac5291724541e6b3a08e21a419e6b26018ef
parenteb4d6a1b3b78f358f885fec7af7eb7f9e3714d5d
Do not access pv_table array for fictitious pages, since the array
does not cover the dynamically registered ficititious ranges, and
fictitious pages mappings are not promoted.  Offer a dummy struct
md_page to fetch constant superpage pv list generation to satisfy
logic.  Also, by initializing the pv_dummy pv_list to empty, we can
remove several explicit PG_FICTITIOUS tests.

Reported and tested by: Michael Butler <imb@protected-networks.net>
(previous version)
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D6728
Approved by: re (hrs)
sys/amd64/amd64/pmap.c