Skip to content

Commit 650c752

Browse files
committed
vm_initialize() after setting properties
1 parent 696a751 commit 650c752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hyperlight_host/src/hypervisor/hyperv_linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ impl HypervLinuxDriver {
111111
// here, because otherwise the partition is set up with a SynIC.
112112

113113
let vm_fd = mshv.create_vm_with_args(&pr)?;
114-
vm_fd.initialize()?;
115114
let features: hv_partition_synthetic_processor_features = Default::default();
116115
vm_fd.hvcall_set_partition_property(
117116
hv_partition_property_code_HV_PARTITION_PROPERTY_SYNTHETIC_PROC_FEATURES,
118117
unsafe { features.as_uint64[0] },
119118
)?;
119+
vm_fd.initialize()?;
120120
vm_fd
121121
};
122122

0 commit comments

Comments
 (0)