Merge pull request #5728 from zhlhahaha:2091

PiperOrigin-RevId: 365613394
This commit is contained in:
gVisor bot
2021-03-29 10:57:46 -07:00
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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.
+2
View File
@@ -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]
}
+1 -1
View File
@@ -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.