freebsd-skq/sys/i386/i386
alc f3d2853f4b Invalidate the mapping before updating its physical address.
Doing so ensures that all threads sharing the pmap have a consistent
view of the mapping.  This fixes the problem described in the commit
log messages for r329254 without the overhead of an extra fault in the
common case.  Once other pmap_enter() implementations are similarly
modified, the workaround added in r329254 can be removed, reducing the
overhead of CoW faults.

See also r335784 for amd64.  The i386 implementation of pmap_enter()
already reused the PV entry from the old mapping.

Reviewed by:	kib, markj
Tested by:	pho
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D16133
2018-07-08 16:51:54 +00:00
..
apic_vector.s i386 4/4G split. 2018-04-13 20:30:49 +00:00
atpic_vector.s i386 4/4G split. 2018-04-13 20:30:49 +00:00
bios.c i386 4/4G split. 2018-04-13 20:30:49 +00:00
bioscall.s Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
bpf_jit_machdep.c Make UMA and malloc(9) return non-executable memory in most cases. 2018-06-13 17:04:41 +00:00
bpf_jit_machdep.h
copyout_fast.s i386 4/4G split. 2018-04-13 20:30:49 +00:00
copyout.c Use vm_page_unhold_pages() instead of manually rolling unoptimized 2018-07-05 16:40:20 +00:00
db_disasm.c Make first a 'bool' instead of a 'boolean_t'. 2018-04-14 22:14:18 +00:00
db_interface.c i386 4/4G split. 2018-04-13 20:30:49 +00:00
db_trace.c Use bool instead of boolean_t here. No reason to use boolean_t. 2018-04-16 13:52:40 +00:00
elan-mmcr.c
elf_machdep.c Implement support for ifuncs in the kernel linker. 2018-05-03 21:37:46 +00:00
exception.s Fix recent breakages of kernel profiling, mostly on i386 (high resolution 2018-06-02 04:25:09 +00:00
gdb_machdep.c
genassym.c Support IBRS for i386. 2018-05-23 16:31:46 +00:00
geode.c
in_cksum.c
initcpu.c
io.c
k6_mem.c Revert r327828, r327949, r327953, r328016-r328026, r328041: 2018-01-21 15:42:36 +00:00
locore.s i386 4/4G split. 2018-04-13 20:30:49 +00:00
longrun.c
machdep.c All exceptions IDT descriptors must use interrupt gates on 4/4 kernel. 2018-06-12 10:43:20 +00:00
mem.c i386 4/4G split. 2018-04-13 20:30:49 +00:00
minidump_machdep.c Print the dump progress indicator after calling dump_start(). 2018-05-01 17:32:43 +00:00
mp_clock.c
mp_machdep.c i386 4/4G split. 2018-04-13 20:30:49 +00:00
mpboot.s i386 4/4G split. 2018-04-13 20:30:49 +00:00
npx.c Reorganize code flow in fpudna()/npxdna() to highlight the critical 2018-06-14 11:09:51 +00:00
perfmon.c
pmap.c Invalidate the mapping before updating its physical address. 2018-07-08 16:51:54 +00:00
prof_machdep.c Fix high resolution kernel profiling just enough to not crash at boot 2018-06-02 05:48:44 +00:00
ptrace_machdep.c
sigtramp.s i386 4/4G split. 2018-04-13 20:30:49 +00:00
support.s Fix recent breakages of kernel profiling, mostly on i386 (high resolution 2018-06-02 04:25:09 +00:00
swtch.s Enable eager FPU context switch by default on i386 too, based on 2018-06-13 21:10:23 +00:00
sys_machdep.c i386 4/4G split. 2018-04-13 20:30:49 +00:00
trap.c Fix typo. 2018-06-12 10:41:26 +00:00
uio_machdep.c
vm86.c i386 4/4G split. 2018-04-13 20:30:49 +00:00
vm86bios.s Fix panics in potentially all x86bios calls on i386 since r332489. 2018-06-10 14:21:01 +00:00
vm_machdep.c i386 4/4G split. 2018-04-13 20:30:49 +00:00