freebsd-skq/sys/mips
kib 798eea1614 Fix a leak of the wired pages when unwiring of the PROT_NONE-mapped
wired region.  Rework the handling of unwire to do the it in batch,
both at pmap and object level.

All commits below are by alc.

MFC r268327:
Introduce pmap_unwire().

MFC r268591:
Implement pmap_unwire() for powerpc.

MFC r268776:
Implement pmap_unwire() for arm.

MFC r268806:
pmap_unwire(9) man page.

MFC r269134:
When unwiring a region of an address space, do not assume that the
underlying physical pages are mapped by the pmap.  This fixes a leak
of the wired pages on the unwiring of the region mapped with no access
allowed.

MFC r269339:
In the implementation of the new function pmap_unwire(), the call to
MOEA64_PVO_TO_PTE() must be performed before any changes are made to the
PVO. Otherwise, MOEA64_PVO_TO_PTE() will panic.

MFC r269365:
Correct a long-standing problem in moea{,64}_pvo_enter() that was revealed
by the combination of r268591 and r269134: When we attempt to add the
wired attribute to an existing mapping, moea{,64}_pvo_enter() do nothing.
(They only set the wired attribute on newly created mappings.)

MFC r269433:
Handle wiring failures in vm_map_wire() with the new functions
pmap_unwire() and vm_object_unwire().
Retire vm_fault_{un,}wire(), since they are no longer used.

MFC r269438:
Rewrite a loop in vm_map_wire() so that gcc doesn't think that the variable
"rv" is uninitialized.

MFC r269485:
Retire pmap_change_wiring().

Reviewed by:	alc
2014-09-01 07:58:15 +00:00
..
adm5120 MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
alchemy MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
atheros MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
beri MFC r264601,264646,265766,267918,267919,267920: 2014-08-16 14:30:46 +00:00
cavium MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
conf MFC r264601,264646,265766,267918,267919,267920: 2014-08-16 14:30:46 +00:00
gxemul Add 32-bit support for Gxemul's oldtestmips machine emulation 2013-09-04 20:34:36 +00:00
idt MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
include MFC r257854 (discussed with alc@) 2014-05-16 01:30:30 +00:00
malta MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
mips Fix a leak of the wired pages when unwiring of the PROT_NONE-mapped 2014-09-01 07:58:15 +00:00
nlm MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
rmi Merge r267482,r267483,r267486,r267577,r267671,r267672 from head: 2014-06-22 16:48:21 +00:00
rt305x MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00
sentry5 Merge from vmobj-rwlock branch: 2013-02-26 01:00:11 +00:00
sibyte MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370, 2014-05-14 01:35:43 +00:00