Skip to content

Commit 6d776fe

Browse files
authored
xenopsd: start vncterm for PVH guests (#6363)
2 parents 0d1592d + 24e8927 commit 6d776fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ocaml/xenopsd/xc/xenops_server_xen.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,10 +2313,12 @@ module VM = struct
23132313
)
23142314
(create_device_model_config vm vmextra vbds vifs vgpus vusbs) ;
23152315
match vm.Vm.ty with
2316-
| Vm.PV {vncterm= true; vncterm_ip= ip; _}
2317-
| Vm.PVinPVH {vncterm= true; vncterm_ip= ip; _} ->
2318-
Service.PV_Vnc.start ~xs ?ip di.Xenctrl.domid
2319-
| _ ->
2316+
| PV {vncterm; vncterm_ip= ip; _}
2317+
| PVH {vncterm; vncterm_ip= ip; _}
2318+
| PVinPVH {vncterm; vncterm_ip= ip; _} ->
2319+
if vncterm then
2320+
Service.PV_Vnc.start ~xs ?ip di.Xenctrl.domid
2321+
| HVM _ ->
23202322
()
23212323
with Device.Ioemu_failed (name, msg) ->
23222324
raise (Xenopsd_error (Failed_to_start_emulator (vm.Vm.id, name, msg)))

0 commit comments

Comments
 (0)