diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-29 10:57:46 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-29 10:57:46 -0700 |
commit | b125afba416ebeba906ea595a44a55afe4729d64 (patch) | |
tree | 1d05c650271c5f469a0ad6f74a15bacec3a4d6ca /pkg | |
parent | da6ddd1df8ef9684d548ec17e7f0e51f5427211b (diff) | |
parent | 253f180c691e762ea94291f9a24eb532bf6d1ee7 (diff) |
Merge pull request #5728 from zhlhahaha:2091
PiperOrigin-RevId: 365613394
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/ring0/lib_arm64.go | 3 | ||||
-rw-r--r-- | pkg/sentry/arch/fpu/fpu_arm64.go | 2 | ||||
-rw-r--r-- | pkg/sentry/platform/kvm/machine.go | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/pkg/ring0/lib_arm64.go b/pkg/ring0/lib_arm64.go index edf24eda3..e44df00a6 100644 --- a/pkg/ring0/lib_arm64.go +++ b/pkg/ring0/lib_arm64.go @@ -62,9 +62,10 @@ func LoadFloatingPoint(*byte) // SaveFloatingPoint saves floating point state. func SaveFloatingPoint(*byte) +// FPSIMDDisableTrap disables fpsimd. func FPSIMDDisableTrap() -// DisableVFP disables fpsimd. +// FPSIMDEnableTrap enables fpsimd. func FPSIMDEnableTrap() // Init sets function pointers based on architectural features. diff --git a/pkg/sentry/arch/fpu/fpu_arm64.go b/pkg/sentry/arch/fpu/fpu_arm64.go index d2f62631d..46634661f 100644 --- a/pkg/sentry/arch/fpu/fpu_arm64.go +++ b/pkg/sentry/arch/fpu/fpu_arm64.go @@ -58,6 +58,8 @@ func (s *State) Fork() State { } // BytePointer returns a pointer to the first byte of the state. +// +//go:nosplit func (s *State) BytePointer() *byte { return &(*s)[0] } diff --git a/pkg/sentry/platform/kvm/machine.go b/pkg/sentry/platform/kvm/machine.go index 0e4cf01e1..5d586f257 100644 --- a/pkg/sentry/platform/kvm/machine.go +++ b/pkg/sentry/platform/kvm/machine.go @@ -436,7 +436,7 @@ func (m *machine) Get() *vCPU { } // The vCPU is not be able to transition to - // vCPUGuest|vCPUUser or to vCPUUser because that + // vCPUGuest|vCPUWaiter or to vCPUUser because that // transition requires holding the machine mutex, as we // do now. There is no path to register a waiter on // just the vCPUReady state. |