more hvm work

This commit is contained in:
Alex Zenla
2024-04-30 10:13:20 -07:00
parent 8c59be1956
commit a6d84d70f4
6 changed files with 142 additions and 346 deletions

View File

@ -726,7 +726,7 @@ impl BootSetupPlatform for X86PvPlatform {
let info = domain
.phys
.map_foreign_pages(shared_info_frame, X86_PAGE_SIZE)
.await? as *mut SharedInfo;
.await?.ptr as *mut SharedInfo;
unsafe {
let size = size_of::<SharedInfo>();
let info_as_buff = slice::from_raw_parts_mut(info as *mut u8, size);