mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
@@ -116,6 +116,7 @@ syscall_enable:
|
|||||||
|
|
||||||
mov rcx, MSR_FMASK
|
mov rcx, MSR_FMASK
|
||||||
mov rax, FMASK_VAL
|
mov rax, FMASK_VAL
|
||||||
|
mov rdx, 0
|
||||||
wrmsr
|
wrmsr
|
||||||
|
|
||||||
pop rbp
|
pop rbp
|
||||||
|
|||||||
Reference in New Issue
Block a user