From 343ec3ccf99a86fb9c67a7b0372e9b7a745f0640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E7=9D=BF?= Date: Tue, 9 Sep 2025 10:35:26 +0800 Subject: [PATCH 1/4] feat: add gpt level api --- Cargo.toml | 2 +- src/percpu.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 174b683..d5878b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "axvcpu" authors = ["aarkegz "] -version = "0.1.1" +version = "0.1.2" edition = "2024" categories = ["virtualization", "no-std"] description = "Virtual CPU abstraction for ArceOS hypervisor" diff --git a/src/percpu.rs b/src/percpu.rs index baf748f..3e24260 100644 --- a/src/percpu.rs +++ b/src/percpu.rs @@ -16,6 +16,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. From b6dc82e705a04086022ee79fa39cbb9d811e8783 Mon Sep 17 00:00:00 2001 From: Josen-B Date: Mon, 9 Feb 2026 07:34:35 +0000 Subject: [PATCH 2/4] fix: update axaddrspace dependency version to 0.1.4 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ef81e59..7fa40c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" From d2b55c496c872564a6efb3070c3b83075f08c3ec Mon Sep 17 00:00:00 2001 From: Josen-B Date: Mon, 9 Feb 2026 07:37:02 +0000 Subject: [PATCH 3/4] release: publish crate version 0.2.1 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7fa40c7..cd2dbd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "axvcpu" authors = ["aarkegz "] -version = "0.2.0" +version = "0.2.1" edition = "2024" categories = ["virtualization", "no-std"] description = "Virtual CPU abstraction for ArceOS hypervisor" From 2e11025c281690d0c0446eef00da75b0e6f1ab33 Mon Sep 17 00:00:00 2001 From: Josen-B Date: Mon, 9 Feb 2026 07:40:36 +0000 Subject: [PATCH 4/4] fix: update axaddrspace dependency specification --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cd2dbd6..22edc44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,5 +13,5 @@ license = "Apache-2.0" axerrno = "0.1.0" memory_addr = "0.4" percpu = "0.2.0" -axaddrspace = "=0.1.4" +axaddrspace = "0.1.4" axvisor_api = "0.1"