mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #8271 from avagin:kvm-arm64-race
PiperOrigin-RevId: 493104979
This commit is contained in:
@@ -26,6 +26,7 @@ import (
|
||||
"math"
|
||||
"runtime"
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
@@ -55,7 +56,8 @@ func (m *machine) setMemoryRegion(slot int, physical, length, virtual uintptr, f
|
||||
}
|
||||
|
||||
// Set the region.
|
||||
_, _, errno := unix.RawSyscall(
|
||||
// Note: syscall.RawSyscall is used to fit the nosplit stack limit.
|
||||
_, _, errno := syscall.RawSyscall(
|
||||
unix.SYS_IOCTL,
|
||||
uintptr(m.fd),
|
||||
_KVM_SET_USER_MEMORY_REGION,
|
||||
|
||||
Reference in New Issue
Block a user