Skip to content

Commit

Permalink
riscv: Introduce riscv bindings
Browse files Browse the repository at this point in the history
Add riscv bindings from v6.9 kernel source, and enables riscv CI in
.platform file.

Signed-off-by: Ruoqing He <[email protected]>
  • Loading branch information
TimePrinciple committed Aug 3, 2024
1 parent 191b059 commit 39612e8
Show file tree
Hide file tree
Showing 6 changed files with 8,287 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .platform
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x86_64
aarch64
riscv64
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

### Added

- KVM bindings for Linux kernel version 6.9 with support for
riscv32, riscv64.

### Changed

### Removed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Rust FFI bindings to KVM, generated using
following target architectures:
- x86_64
- arm64
- riscv

The bindings exported by this crate are statically generated using header files
associated with a specific kernel version, and are not automatically synced with
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ pub use self::x86_64::*;
mod arm64;
#[cfg(any(target_arch = "aarch", target_arch = "aarch64"))]
pub use self::arm64::*;

#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
mod riscv;
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
pub use self::riscv::*;
Loading

0 comments on commit 39612e8

Please sign in to comment.