Skip to content

Commit 4bde74b

Browse files
committed
Added comment
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 9d423c6 commit 4bde74b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hyperlight_host/src/hypervisor/hyperv_linux.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ impl HypervLinuxDriver {
109109
let vm_fd = mshv.create_vm_with_config(&pr)?;
110110
#[cfg(mshv3)]
111111
let vm_fd = {
112+
// It's important to avoid create_vm() and explicitly use
113+
// create_vm_with_args() with an empty arguments structure
114+
// here, because otherwise the partition is set up with a SynIC.
115+
112116
let vm_fd = mshv.create_vm_with_args(&pr)?;
113117
let features: hv_partition_synthetic_processor_features = Default::default();
114118
vm_fd.hvcall_set_partition_property(

0 commit comments

Comments
 (0)