File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ pub struct HyperVPetriRuntime {
60
60
log_tasks : Vec < Task < anyhow:: Result < ( ) > > > ,
61
61
temp_dir : tempfile:: TempDir ,
62
62
is_openhcl : bool ,
63
+ is_isolated : bool ,
63
64
driver : DefaultDriver ,
64
65
}
65
66
@@ -393,6 +394,7 @@ impl PetriVmmBackend for HyperVPetriBackend {
393
394
log_tasks,
394
395
temp_dir,
395
396
is_openhcl : openhcl_config. is_some ( ) ,
397
+ is_isolated : firmware. isolation ( ) . is_some ( ) ,
396
398
driver : driver. clone ( ) ,
397
399
} )
398
400
}
@@ -492,7 +494,7 @@ impl PetriVmRuntime for HyperVPetriRuntime {
492
494
}
493
495
494
496
fn take_framebuffer_access ( & mut self ) -> Option < HyperVFramebufferAccess > {
495
- Some ( HyperVFramebufferAccess {
497
+ ( ! self . is_isolated ) . then ( || HyperVFramebufferAccess {
496
498
vm : Arc :: downgrade ( & self . vm ) ,
497
499
} )
498
500
}
You can’t perform that action at this time.
0 commit comments