diff --git a/.github/workflows/build-checks-preview-riscv64.yaml b/.github/workflows/build-checks-preview-riscv64.yaml index 6ab72157b..d8af09941 100644 --- a/.github/workflows/build-checks-preview-riscv64.yaml +++ b/.github/workflows/build-checks-preview-riscv64.yaml @@ -43,6 +43,10 @@ jobs: - rust - musl-tools - protobuf-compiler + - name: runtime-rs + path: src/runtime-rs + needs: + - rust steps: - name: Adjust a permission for repo diff --git a/src/libs/kata-sys-util/src/protection.rs b/src/libs/kata-sys-util/src/protection.rs index 1b7301736..9cb11a117 100644 --- a/src/libs/kata-sys-util/src/protection.rs +++ b/src/libs/kata-sys-util/src/protection.rs @@ -277,6 +277,13 @@ pub fn available_guest_protection() -> Result Ok(GuestProtection::NoProtection) } +#[cfg(target_arch = "riscv64")] +#[allow(dead_code)] +// Guest protection is not supported on RISC-V. +pub fn available_guest_protection() -> Result { + Ok(GuestProtection::NoProtection) +} + #[cfg(target_arch = "x86_64")] #[cfg(test)] mod tests { diff --git a/src/runtime-rs/arch/riscv64gc-options.mk b/src/runtime-rs/arch/riscv64gc-options.mk new file mode 100644 index 000000000..657a5ac6d --- /dev/null +++ b/src/runtime-rs/arch/riscv64gc-options.mk @@ -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