Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RISC-V RV64 (64-bit, riscv64) #134

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@davidlt
Copy link

commented Dec 6, 2018

The patch adds support for riscv64 architecture. It also enables
the following syscalls:

  • riscv_flush_icache (RISC-V RV32/RV64 specific)
  • preadv2
  • pwritev2
  • renameat
  • renameat2
  • io_pgetevents
  • rseq

This was tested on Fedora 29/RISCV [0] using 4.19 kernel.
Tested on top of libseccomp commit:
1e64feb

Results for testing:

./regression -T live

Regression Test Summary
tests run: 8
tests skipped: 0
tests passed: 8
tests failed: 0
tests errored: 0

./regression

Regression Test Summary
tests run: 5129
tests skipped: 104
tests passed: 5129
tests failed: 0
tests errored: 0

I plan to post kernel side patches later this week.

[0] https://fedoraproject.org/wiki/Architectures/RISC-V

Signed-off-by: David Abdurachmanov david.abdurachmanov@gmail.com

Add support for RISC-V RV64 (64-bit, riscv64)
The patch adds support for riscv64 architecture. It also enables
the following syscalls:
- riscv_flush_icache (RISC-V RV32/RV64 specific)
- preadv2
- pwritev2
- renameat
- renameat2
- io_pgetevents
- rseq

This was tested on Fedora 29/RISCV [0] using 4.19 kernel.
Tested on top of libseccomp commit:
1e64feb

Results for testing:

./regression -T live

Regression Test Summary
 tests run: 8
 tests skipped: 0
 tests passed: 8
 tests failed: 0
 tests errored: 0

./regression

Regression Test Summary
 tests run: 5129
 tests skipped: 104
 tests passed: 5129
 tests failed: 0
 tests errored: 0

[0] https://fedoraproject.org/wiki/Architectures/RISC-V

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
@pcmoore

This comment has been minimized.

Copy link
Member

commented Dec 6, 2018

Thanks @davidlt, please let me know when the kernel patches have been accepted and I'll take a closer look.

@davidlt

This comment has been minimized.

Copy link
Author

commented Dec 6, 2018

I plan to send kernel patches later today (already working on it), but I don't expect feedback in coming days due to RISC-V Summit.

I plan to enable audit (already in linux-next), seccomp and selinux (depends on audit) in Fedora 30/RISCV once rc6 happens (in few days).

@pcmoore

This comment has been minimized.

Copy link
Member

commented Dec 6, 2018

That's great, thanks. I'll look forward to hearing the kernel patches have been merged upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.