[kernel] Make sure high bits are 0 writing SFMASK MSR

QEMU handles bits bring written in the (reserved) high bits of SFMASK
just fine, but KVM gives a #GP exception.
This commit is contained in:
Justin C. Miller
2022-10-04 20:10:41 -07:00
parent e90647d498
commit 6b20f1fb19

View File

@@ -116,6 +116,7 @@ syscall_enable:
mov rcx, MSR_FMASK
mov rax, FMASK_VAL
mov rdx, 0
wrmsr
pop rbp