-
Notifications
You must be signed in to change notification settings - Fork 103
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 build support on riscv64 #287
Conversation
Hello, I'm just checking in on this PR as it's been a while since there's been any activity. I'm eager to get your feedback and incorporate any suggestions you may have. Please let me know if you have any questions or require further clarification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, sorry for the delay. We're still trying to figure out how to best realize riscv64 support in rust-vmm, mainly wrt testing - we'll be talking about it at the next community sync next week monday!
As for this specific PR though, since it'd just relaxing the target_arch
cfgs, I think that's fine to just merge. There's quite a few in there that we don't currently test already, so adding risc isn't gonna make anything worse here I'd say
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments! Could you also have a look at the commit style related CI failure and the DCO check (latter should just be a matter of git amend -s
).
Relaxing the target_arch cfgs for riscv64 Signed-off-by: Nianqing Yao <imbearchild@outlook.com>
To incorporate: - [[rust-vmm#287](rust-vmm#287)] Support for RISC-V 64-bit platform. - [[rust-vmm#299](rust-vmm#299)] atomic_bitmap: support enlarging the bitmap. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
To incorporate: - [[rust-vmm#287](rust-vmm#287)] Support for RISC-V 64-bit platform. - [[rust-vmm#299](rust-vmm#299)] atomic_bitmap: support enlarging the bitmap. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
Summary of the PR
This pull request adds support for building the project on RISC-V 64 (riscv64) architectures. Building has been tested successfully on Fedora.
You can test it by building rpm from this repo:
https://src.fedoraproject.org/fork/imbearchild/rpms/rust-vm-memory/tree/rawhide-rv64
(Since Fedora do not have official rv64 support at this moment, you can use a third-party Fedora port from PLCT lab, both OCI image and disk image is available. If you want to use it, please refer to Fedora Wiki for more information on this topic.)
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.