multiple corrections to page table setup and fix vcpu structs

This commit is contained in:
Alex Zenla
2024-01-11 23:54:44 -08:00
parent 4b4f22ffcd
commit b79c31e613
5 changed files with 108 additions and 21 deletions

View File

@ -1,6 +1,7 @@
use crate::sys::XEN_PAGE_SHIFT;
use crate::XenClientError;
use crate::x86::X86_PAGE_SHIFT;
use xencall::sys::MmapEntry;
use xencall::XenCall;
@ -59,7 +60,7 @@ impl PhysicalPages<'_> {
}
}
return Ok(page.ptr + ((pfn - page.pfn) << XEN_PAGE_SHIFT));
return Ok(page.ptr + ((pfn - page.pfn) << X86_PAGE_SHIFT));
}
if count == 0 {