Skip to content

Commit 7e02b7e

Browse files
committed
Windows working
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 5f9e80f commit 7e02b7e

File tree

12 files changed

+335
-454
lines changed

12 files changed

+335
-454
lines changed

src/hyperlight_host/src/hypervisor/hyperlight_vm.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,6 @@ impl HyperlightVm for HyperlightSandbox {
401401
None => self.get_max_log_level().into(),
402402
};
403403

404-
println!("Entrypoint: {:#x}", self.entrypoint);
405-
406404
let regs = CommonRegisters {
407405
rip: self.entrypoint,
408406
rsp: self.orig_rsp.absolute()?,

src/hyperlight_host/src/hypervisor/hyperv_linux.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ impl Vm for MshvVm {
159159
}
160160

161161
unsafe fn map_memory(&self, regions: &[MemoryRegion]) -> Result<()> {
162+
if regions.is_empty() {
163+
return Err(new_error!("No memory regions to map"));
164+
}
165+
162166
regions.iter().try_for_each(|region| {
163167
let mshv_region = region.clone().into();
164168
self.vm_fd.map_user_memory(mshv_region)

0 commit comments

Comments
 (0)