Do not access pv_table array for fictitious pages, since the array
commit7e7c56668a9a869ccea84ffa94ee20ed1905103a
authorkib <kib@FreeBSD.org>
Mon, 13 Jun 2016 03:45:08 +0000 (13 03:45 +0000)
committerkib <kib@FreeBSD.org>
Mon, 13 Jun 2016 03:45:08 +0000 (13 03:45 +0000)
treef7baac5291724541e6b3a08e21a419e6b26018ef
parent528a6a2f8238b93d6d9cbc3890f0af088e2bf1b7
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