mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-01 11:56:29 +00:00
Merge pull request #11042 from RuoqingHe/runtime-rs-riscv
runtime-rs: Support and enable build on riscv64
This commit is contained in:
commit
36d2dee3a4
@ -43,6 +43,10 @@ jobs:
|
|||||||
- rust
|
- rust
|
||||||
- musl-tools
|
- musl-tools
|
||||||
- protobuf-compiler
|
- protobuf-compiler
|
||||||
|
- name: runtime-rs
|
||||||
|
path: src/runtime-rs
|
||||||
|
needs:
|
||||||
|
- rust
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
- name: Adjust a permission for repo
|
||||||
|
@ -277,6 +277,13 @@ pub fn available_guest_protection() -> Result<GuestProtection, ProtectionError>
|
|||||||
Ok(GuestProtection::NoProtection)
|
Ok(GuestProtection::NoProtection)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_arch = "riscv64")]
|
||||||
|
#[allow(dead_code)]
|
||||||
|
// Guest protection is not supported on RISC-V.
|
||||||
|
pub fn available_guest_protection() -> Result<GuestProtection, ProtectionError> {
|
||||||
|
Ok(GuestProtection::NoProtection)
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
13
src/runtime-rs/arch/riscv64gc-options.mk
Normal file
13
src/runtime-rs/arch/riscv64gc-options.mk
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright (c) 2025 Institute of Software, CAS.
|
||||||
|
# Copyright (c) 2019-2022 Alibaba Cloud
|
||||||
|
# Copyright (c) 2019-2022 Ant Group
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
MACHINETYPE := virt
|
||||||
|
KERNELPARAMS := cgroup_no_v1=all systemd.unified_cgroup_hierarchy=1
|
||||||
|
MACHINEACCELERATORS :=
|
||||||
|
CPUFEATURES :=
|
||||||
|
|
||||||
|
QEMUCMD := qemu-system-riscv64
|
Loading…
Reference in New Issue
Block a user