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 build support on riscv64 #287

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Add build support on riscv64 #287

merged 3 commits into from
Sep 10, 2024

Conversation

ImBearChild
Copy link
Contributor

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:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

@ImBearChild
Copy link
Contributor Author

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.

Copy link
Collaborator

@roypat roypat left a 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

src/bytes.rs Outdated Show resolved Hide resolved
src/bytes.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@roypat roypat left a 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 <[email protected]>
@roypat roypat merged commit 54c6722 into rust-vmm:main Sep 10, 2024
2 checks passed
TimePrinciple added a commit to TimePrinciple/vm-memory that referenced this pull request Oct 7, 2024
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 <[email protected]>
TimePrinciple added a commit to TimePrinciple/vm-memory that referenced this pull request Oct 9, 2024
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 <[email protected]>
roypat pushed a commit that referenced this pull request Oct 9, 2024
To incorporate:

- [[#287](#287)] Support for RISC-V 64-bit platform.
- [[#299](#299)] atomic_bitmap: support enlarging the bitmap.

Signed-off-by: Ruoqing He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants