File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/hyperlight_host/src/hypervisor Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -893,13 +893,17 @@ fn set_up_hypervisor_partition(
893
893
894
894
#[ cfg( target_os = "windows" ) ]
895
895
Some ( HypervisorType :: Whp ) => {
896
+ let mmap_file_handle = mgr
897
+ . shared_mem
898
+ . with_exclusivity ( |e| e. get_mmap_file_handle ( ) ) ?;
896
899
let hv = crate :: hypervisor:: hyperv_windows:: HypervWindowsDriver :: new (
897
900
regions,
898
901
mgr. shared_mem . raw_mem_size ( ) , // we use raw_* here because windows driver requires 64K aligned addresses,
899
902
mgr. shared_mem . raw_ptr ( ) as * mut c_void , // and instead convert it to base_addr where needed in the driver itself
900
903
pml4_ptr. absolute ( ) ?,
901
904
entrypoint_ptr. absolute ( ) ?,
902
905
rsp_ptr. absolute ( ) ?,
906
+ mmap_file_handle,
903
907
) ?;
904
908
Ok ( Box :: new ( hv) )
905
909
}
You can’t perform that action at this time.
0 commit comments