xref: /DragonOS/kernel/src/arch/riscv64/kvm/mod.rs (revision c635d8a9cfe25bc11779f323ef0c7d7a0f597d4a)
1 use system_error::SystemError;
2 
3 #[derive(Debug, Clone, Default)]
4 pub struct RiscV64KVMArch {}
5 
6 impl RiscV64KVMArch {
7     /// @brief 查看CPU是否支持虚拟化
8     pub fn kvm_arch_cpu_supports_vm() -> Result<(), SystemError> {
9         unimplemented!("RiscV64KVMArch::kvm_arch_cpu_supports_vm")
10     }
11 
12     /// @brief 初始化KVM
13     pub fn kvm_arch_init() -> Result<(), SystemError> {
14         Ok(())
15     }
16 
17     pub fn kvm_arch_dev_ioctl(cmd: u32, _arg: usize) -> Result<usize, SystemError> {
18         unimplemented!("RiscV64KVMArch::kvm_arch_dev_ioctl")
19     }
20 }
21