Skip to content

Commit 20bb384

Browse files
committed
publish crates.io version 0.1.1
1 parent 5daa669 commit 20bb384

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2024"
33
name = "arm_vcpu"
4-
version = "0.1.0"
4+
version = "0.1.1"
55
authors = [
66
"KeYang Hu <keyang.hu@qq.com>",
77
"Mingxian Su <aarkegz@gmail.com>",

src/vcpu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ impl<H: AxVCpuHal> Aarch64VCpu<H> {
192192
// read PARange (bits 3:0)
193193
let parange = (ID_AA64MMFR0_EL1.get() & 0xF) as u8;
194194
// ARM Definition: 0x5 indicates 48 bits PA, 0x4 indicates 44 bits PA, and so on.
195-
if parange <= 0x5 {
195+
if parange <= 0x4 {
196196
panic!(
197-
"CPU only supports {}-bit PA (< 48), \
197+
"CPU only supports {}-bit PA (< 44), \
198198
cannot enable 4-level EPT paging!",
199199
match parange {
200200
0x0 => 32,

0 commit comments

Comments
 (0)