Module Name: src Committed By: maxv Date: Thu Jul 12 19:48:16 UTC 2018
Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S machdep.c src/sys/arch/amd64/include: frameasm.h src/sys/arch/x86/x86: svs.c Log Message: Handle NMIs correctly when SVS is enabled. We store the kernel's CR3 at the top of the NMI stack, and we unconditionally switch to it, because we don't know with which page tables we received the NMI. Hotpatch the whole thing as usual. This restores the ability to use PMCs on Intel CPUs. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/arch/amd64/amd64/amd64_trap.S cvs rdiff -u -r1.169 -r1.170 src/sys/arch/amd64/amd64/locore.S cvs rdiff -u -r1.305 -r1.306 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.38 -r1.39 src/sys/arch/amd64/include/frameasm.h cvs rdiff -u -r1.18 -r1.19 src/sys/arch/x86/x86/svs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.