Author: kib Date: Sun Mar 17 18:31:48 2019 New Revision: 345246 URL: https://svnweb.freebsd.org/changeset/base/345246
Log: i386: improve detection of the fast page fault assist. In particular, check that we are assisting the page fault from kernel mode. Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified: head/sys/i386/i386/exception.s Modified: head/sys/i386/i386/exception.s ============================================================================== --- head/sys/i386/i386/exception.s Sun Mar 17 18:06:13 2019 (r345245) +++ head/sys/i386/i386/exception.s Sun Mar 17 18:31:48 2019 (r345246) @@ -131,6 +131,10 @@ IDTVEC(prot) pushl $T_PROTFLT jmp irettraps IDTVEC(page) + testl $PSL_VM, TF_EFLAGS-TF_ERR(%esp) + jnz 1f + testb $SEL_RPL_MASK, TF_CS-TF_ERR(%esp) + jnz 1f cmpl $PMAP_TRM_MIN_ADDRESS, TF_EIP-TF_ERR(%esp) jb 1f movl %ebx, %cr3 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"