mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
add related arm64 syscall for vfs2
arm64 vfs2: Add support for io_submit/fallocate/ sendfile/newfstatat/readahead/fadvise64 Signed-off-by: Howard Zhang <howard.zhang@arm.com>
This commit is contained in:
@@ -163,6 +163,7 @@ func Override() {
|
||||
|
||||
// Override ARM64.
|
||||
s = linux.ARM64
|
||||
s.Table[2] = syscalls.PartiallySupported("io_submit", IoSubmit, "Generally supported with exceptions. User ring optimizations are not implemented.", []string{"gvisor.dev/issue/204"})
|
||||
s.Table[5] = syscalls.Supported("setxattr", SetXattr)
|
||||
s.Table[6] = syscalls.Supported("lsetxattr", Lsetxattr)
|
||||
s.Table[7] = syscalls.Supported("fsetxattr", Fsetxattr)
|
||||
@@ -200,6 +201,7 @@ func Override() {
|
||||
s.Table[44] = syscalls.Supported("fstatfs", Fstatfs)
|
||||
s.Table[45] = syscalls.Supported("truncate", Truncate)
|
||||
s.Table[46] = syscalls.Supported("ftruncate", Ftruncate)
|
||||
s.Table[47] = syscalls.PartiallySupported("fallocate", Fallocate, "Not all options are supported.", nil)
|
||||
s.Table[48] = syscalls.Supported("faccessat", Faccessat)
|
||||
s.Table[49] = syscalls.Supported("chdir", Chdir)
|
||||
s.Table[50] = syscalls.Supported("fchdir", Fchdir)
|
||||
@@ -221,12 +223,14 @@ func Override() {
|
||||
s.Table[68] = syscalls.Supported("pwrite64", Pwrite64)
|
||||
s.Table[69] = syscalls.Supported("preadv", Preadv)
|
||||
s.Table[70] = syscalls.Supported("pwritev", Pwritev)
|
||||
s.Table[71] = syscalls.Supported("sendfile", Sendfile)
|
||||
s.Table[72] = syscalls.Supported("pselect", Pselect)
|
||||
s.Table[73] = syscalls.Supported("ppoll", Ppoll)
|
||||
s.Table[74] = syscalls.Supported("signalfd4", Signalfd4)
|
||||
s.Table[76] = syscalls.Supported("splice", Splice)
|
||||
s.Table[77] = syscalls.Supported("tee", Tee)
|
||||
s.Table[78] = syscalls.Supported("readlinkat", Readlinkat)
|
||||
s.Table[79] = syscalls.Supported("newfstatat", Newfstatat)
|
||||
s.Table[80] = syscalls.Supported("fstat", Fstat)
|
||||
s.Table[81] = syscalls.Supported("sync", Sync)
|
||||
s.Table[82] = syscalls.Supported("fsync", Fsync)
|
||||
@@ -251,8 +255,10 @@ func Override() {
|
||||
s.Table[210] = syscalls.Supported("shutdown", Shutdown)
|
||||
s.Table[211] = syscalls.Supported("sendmsg", SendMsg)
|
||||
s.Table[212] = syscalls.Supported("recvmsg", RecvMsg)
|
||||
s.Table[213] = syscalls.Supported("readahead", Readahead)
|
||||
s.Table[221] = syscalls.Supported("execve", Execve)
|
||||
s.Table[222] = syscalls.Supported("mmap", Mmap)
|
||||
s.Table[223] = syscalls.PartiallySupported("fadvise64", Fadvise64, "Not all options are supported.", nil)
|
||||
s.Table[242] = syscalls.Supported("accept4", Accept4)
|
||||
s.Table[243] = syscalls.Supported("recvmmsg", RecvMMsg)
|
||||
s.Table[267] = syscalls.Supported("syncfs", Syncfs)
|
||||
|
||||
Reference in New Issue
Block a user