diff options
author | Andrei Vagin <avagin@google.com> | 2021-07-22 15:53:06 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-07-22 15:55:31 -0700 |
commit | 0690c25e062ad1b8dc162b4b4d70ab59879b9bff (patch) | |
tree | 398eb2c9eacea328748780f3040f00d37e7b909a /pkg/ring0/x86.go | |
parent | 47f025461e6fdf8da99c780b17c2227696e83845 (diff) |
kvm: set CR0.NE = 1
CR0.NE enables internal x87 floating point error reporting when set, else
enables PC style x87 error detection.
On AMD, the #MF exception isn't generated if CR0.NE isn't set.
PiperOrigin-RevId: 386340269
Diffstat (limited to 'pkg/ring0/x86.go')
-rw-r--r-- | pkg/ring0/x86.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/ring0/x86.go b/pkg/ring0/x86.go index 7c96cca6b..9a98703da 100644 --- a/pkg/ring0/x86.go +++ b/pkg/ring0/x86.go @@ -25,6 +25,7 @@ import ( const ( _CR0_PE = 1 << 0 _CR0_ET = 1 << 4 + _CR0_NE = 1 << 5 _CR0_AM = 1 << 18 _CR0_PG = 1 << 31 |