freebsd-dev/sys/amd64
Konstantin Belousov c1c120b2cb amd64: fix switching to the pmap with pti disabled.
When the pmap with pti disabled (i.e. pm_ucr3 == PMAP_NO_CR3) is
activated, tss.rsp0 was not updated.  Any interrupt that happen before
next context switch would use pti trampoline stack for hardware frame
but fault and interrupt handlers are not prepared to this.  Correctly
update tss.rsp0 for both PMAP_NO_CR3 and pti pmaps.

Note that this case, pti = 1 but pmap->pm_ucr3 == PMAP_NO_CR3 is not
used at the moment.

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D19514
2019-03-16 11:16:09 +00:00
..
acpica
amd64 amd64: fix switching to the pmap with pti disabled. 2019-03-16 11:16:09 +00:00
cloudabi32 Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
cloudabi64 Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
conf add gcov to LINT build 2019-03-07 03:50:34 +00:00
ia32 Remove iBCS2, part2: general kernel 2018-12-19 21:57:58 +00:00
include Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
linux Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
linux32 Kill tz_minuteswest and tz_dsttime. 2019-03-12 04:49:47 +00:00
pci Do not flush cache for PCIe config window. 2018-10-18 20:49:16 +00:00
sgx Fix refcount leaks in the SGX Linux compat ioctl handler. 2019-02-17 16:43:44 +00:00
vmm Fix missed posted interrupts in VT-x in bhyve. 2019-03-01 20:43:48 +00:00
Makefile