Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axvcpu"
authors = ["aarkegz <aarkegz@gmail.com>"]
version = "0.2.0"
version = "0.2.1"
edition = "2024"
categories = ["virtualization", "no-std"]
description = "Virtual CPU abstraction for ArceOS hypervisor"
Expand All @@ -13,5 +13,5 @@ license = "Apache-2.0"
axerrno = "0.1.0"
memory_addr = "0.4"
percpu = "0.2.0"
axaddrspace = "0.1"
axaddrspace = "0.1.4"
axvisor_api = "0.1"
4 changes: 4 additions & 0 deletions src/percpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ pub trait AxArchPerCpu: Sized {
fn hardware_enable(&mut self) -> AxResult;
/// Disable hardware virtualization on the current CPU.
fn hardware_disable(&mut self) -> AxResult;
/// Return max guest page table levels used by the architecture.
fn max_guest_page_table_levels(&self) -> usize {
4
}
}

/// Host per-CPU states to run the guest.
Expand Down