xref: /DragonOS/kernel/src/arch/riscv64/kvm/mod.rs (revision 81294aa2e6b257f0de5e3c28c3f3c89798330836)
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