Update syscall to start loong64 support#3765
Update syscall to start loong64 support#3765zhaixiaojuan wants to merge 4 commits intoopencontainers:mainfrom zhaixiaojuan:main
Conversation
| // +build linux | ||
| // +build arm64 amd64 mips mipsle mips64 mips64le ppc ppc64 ppc64le riscv64 s390x | ||
| // +build arm64 amd64 loong64 mips mipsle mips64 mips64le ppc ppc64 ppc64le riscv64 s390x | ||
|
|
There was a problem hiding this comment.
There was a problem hiding this comment.
...and libseccomp-golang needs to be updated as well (see seccomp/libseccomp-golang#106)
There was a problem hiding this comment.
...and libseccomp-golang needs to be updated as well (see seccomp/libseccomp-golang#106)
Sorry, I didn't know that you had submitted a PR before submitting the PR (seccomp/libseccomp-golang#107), but there are some differences in the submitted code, please review
There was a problem hiding this comment.
seccomp needs to be updated too
runc/libcontainer/seccomp/config.go
Line 74 in a2f27f0
I have updated it, please check
|
Let's wait until runc dependencies have loong64 supported. That includes:
Once all that is ready and released, we can add the support. Doing it earlier doesn't make much practical sense. |
|
@kolyshkin |
runc does not support loongarch64 yet. opencontainers/runc#3765
|
From the list above, libseccomp was just released last month, and I'm working on libseccomp-golang right now (see seccomp/libseccomp-golang#117). Once libseccomp-golang is released, we can get this out of draft. For now, you can help reviewing commits in there. |
|
libseccomp-golang v0.11.0 is out! @zhaixiaojuan PTAL |
|
@AkihiroSuda @kolyshkin |
|
Needs rebase, LGTM after that |
|
@kolyshkin @AkihiroSuda This error is the same as seccomp/libseccomp-golang#112 need to add loong64 in the case statement of the libseccomp-golang/seccomp.go file: In addition, the relevant patches for this problem have been merged into the Debian community in advance.Detailed patch link address: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1095322;filename=golang-github-seccomp-libseccomp-golang-add-loongarch64-support.patch;msg=5 |
|
@kolyshkin
|
|
@zhaixiaojuan I've released https://github.com/seccomp/libseccomp-golang/releases/tag/v0.11.1 so this can be updated now. |
And the bump PR (#4839) is now merged |
Signed-off-by: zhaixiaojuan <67671683+zhaixiaojuan@users.noreply.github.com>
@kolyshkin Thank you very much, I will rebase this PR |
|
@AkihiroSuda
I've confirmed that this error is caused by the libseccomp used in the test environment not supporting the loongarch64 architecture. Currently, support for loongarch64 is available at http://ftp.ports.debian.org/debian-ports/pool-loong64/main/libs/libseccomp/ . |
@AkihiroSuda |
|
Hi, is there any latest progress on this PR? |
|
The CI failure has to be resolved. |
|
Also please squash the commits |
The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a RISC style.
Documentations:
ISA:
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
ABI:
https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
More docs can be found at:
https://loongson.github.io/LoongArch-Documentation/README-EN.html