rust-vmm / seccompiler

Provides easy-to-use Linux seccomp-bpf jailing.
https://crates.io/crates/seccompiler
Apache License 2.0
77 stars 11 forks source link

Add riscv64 support #72

Open kxxt opened 8 months ago

kxxt commented 8 months ago

Summary of the PR

Add riscv64 support.

Requirements

Before submitting your PR, please make sure you addressed the following requirements:

alindima commented 8 months ago

thanks for the contribution. while it overall looks good, we don't have any riscv support in the CI. Without that, I don't think we can merge such PRs, since it would basically result in untested code being released. I noticed at least one other rust-vmm crate which has open PRs for riscv support also. Is there such planned support? CC: @andreeaflorescu (mentioning you since you may have an opinion on this)

kxxt commented 8 months ago

while it overall looks good,

Thank!

while it overall looks good, we don't have any riscv support in the CI.

It looks like there's a PR adding that: https://github.com/rust-vmm/rust-vmm-ci/pull/148

Without that, I don't think we can merge such PRs, since it would basically result in untested code being released.

I think another possible way could be merging riscv64 support and labeling riscv64 as a community supported and not officially tested architecture in the documentation.

BTW here is a test log on riscv64: https://paste.rs/Oyi0p