Skip to content

Commit

Permalink
vm_initialize() after setting properties
Browse files Browse the repository at this point in the history
  • Loading branch information
marosset committed Jan 14, 2025
1 parent 696a751 commit 650c752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hyperlight_host/src/hypervisor/hyperv_linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ impl HypervLinuxDriver {
// here, because otherwise the partition is set up with a SynIC.

let vm_fd = mshv.create_vm_with_args(&pr)?;
vm_fd.initialize()?;
let features: hv_partition_synthetic_processor_features = Default::default();
vm_fd.hvcall_set_partition_property(
hv_partition_property_code_HV_PARTITION_PROPERTY_SYNTHETIC_PROC_FEATURES,
unsafe { features.as_uint64[0] },
)?;
vm_fd.initialize()?;
vm_fd
};

Expand Down

0 comments on commit 650c752

Please sign in to comment.