Skip to content

Commit d77ff6e

Browse files
committed
fix: update memory mapping type in build_vmconfig function
1 parent 3014409 commit d77ff6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/src/vmm/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn build_vmconfig(cfg: AxVMCrateConfig) -> anyhow::Result<AxVMConfig> {
4949

5050
for region in &cfg.kernel.memory_regions {
5151
let mem_region = match region.map_type {
52-
axvmconfig::VmMemMappingType::MapAlloc => MemoryKind::Fixed {
52+
axvmconfig::VmMemMappingType::MapAlloc => MemoryKind::Vmem {
5353
gpa: region.gpa.into(),
5454
size: region.size,
5555
},

0 commit comments

Comments
 (0)