Enable IBRS when entering an interrupt handler from usermode.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2018-05-22 13:25:15 +00:00
parent 2cea52d486
commit e6ad362804

View File

@ -260,6 +260,7 @@ X\vec_name:
jz 1f /* yes, leave PCB_FULL_IRET alone */
movq PCPU(CURPCB),%r8
andl $~PCB_FULL_IRET,PCB_FLAGS(%r8)
call handle_ibrs_entry
1:
.endm