From dd00bd6ef2c18edeb500c5589e5443d3d8934d09 Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Wed, 6 Nov 2024 11:34:44 +0800 Subject: [PATCH] hypervisor: arch: Integrate riscv64 to arch module Integrate `aia` module into `riscv64` module, and enable `riscv64` module if target architecture is RISC-V 64-bit. Signed-off-by: Ruoqing He --- hypervisor/src/arch/mod.rs | 3 +++ hypervisor/src/arch/riscv64/mod.rs | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 hypervisor/src/arch/riscv64/mod.rs diff --git a/hypervisor/src/arch/mod.rs b/hypervisor/src/arch/mod.rs index e68225da5..d0ffd948d 100644 --- a/hypervisor/src/arch/mod.rs +++ b/hypervisor/src/arch/mod.rs @@ -21,3 +21,6 @@ pub mod x86; #[cfg(target_arch = "aarch64")] pub mod aarch64; + +#[cfg(target_arch = "riscv64")] +pub mod riscv64; diff --git a/hypervisor/src/arch/riscv64/mod.rs b/hypervisor/src/arch/riscv64/mod.rs new file mode 100644 index 000000000..1bad76ced --- /dev/null +++ b/hypervisor/src/arch/riscv64/mod.rs @@ -0,0 +1,5 @@ +// Copyright © 2024 Institute of Software, CAS. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 + +pub mod aia;