feat(kvm): 删除了旧版本kvm的代码 (#1093)

* feat(kvm): 删除了旧版本kvm的代码

* chore(kernel): 将release profile中的debug选项设置为false

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
Co-authored-by: longjin <longjin@DragonOS.org>
This commit is contained in:
Z Fan
2025-03-25 13:41:30 +08:00
committed by GitHub
parent 8b8f2f7981
commit 4729ec69c4
20 changed files with 29 additions and 2212 deletions

View File

@ -36,9 +36,6 @@ use core::fmt::Debug;
use core::sync::atomic::{compiler_fence, AtomicBool, Ordering};
use super::kvm::vmx::vmcs::VmcsFields;
use super::kvm::vmx::vmx_asm_wrapper::vmx_vmread;
pub type PageMapper =
crate::mm::page::PageMapper<crate::arch::x86_64::mm::X86_64MMArch, LockedFrameAllocator>;
@ -199,10 +196,8 @@ impl MemoryManagementArch for X86_64MMArch {
compiler_fence(Ordering::SeqCst);
return PhysAddr::new(cr3);
}
PageTableKind::EPT => {
let eptp =
vmx_vmread(VmcsFields::CTRL_EPTP_PTR as u32).expect("Failed to read eptp");
return PhysAddr::new(eptp as usize);
_ => {
todo!("Unsupported table kind: {:?}", table_kind);
}
}
}