Skip to content

Add basic support for loongarch64 architecture #307

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .buildkite/custom-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"platform": [
"x86_64",
"aarch64",
"riscv64"
"riscv64",
"loongarch64"
]
},
{
Expand All @@ -23,7 +24,8 @@
"platform": [
"x86_64",
"aarch64",
"riscv64"
"riscv64",
"loongarch64"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions .platform
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
x86_64
aarch64
riscv64
loongarch64
2 changes: 2 additions & 0 deletions kvm-bindings/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

### Added

- LoongArch KVM bindings for Linux kernel v6.13, including serialization support.

### Changed

### Removed
Expand Down
1 change: 1 addition & 0 deletions kvm-bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ following target architectures:
- x86_64
- arm64
- riscv64
- loongarch64

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
7 changes: 6 additions & 1 deletion kvm-bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#![allow(non_snake_case)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(feature = "fam-wrappers")]
#[cfg(all(feature = "fam-wrappers", not(target_arch = "loongarch64")))]
#[macro_use]
extern crate vmm_sys_util;

Expand Down Expand Up @@ -36,3 +36,8 @@ pub use self::arm64::*;
mod riscv64;
#[cfg(target_arch = "riscv64")]
pub use self::riscv64::*;

#[cfg(target_arch = "loongarch64")]
mod loongarch64;
#[cfg(target_arch = "loongarch64")]
pub use self::loongarch64::*;
Loading