Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ocaml/xenopsd/xc/xenops_server_xen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2313,10 +2313,12 @@ module VM = struct
)
(create_device_model_config vm vmextra vbds vifs vgpus vusbs) ;
match vm.Vm.ty with
| Vm.PV {vncterm= true; vncterm_ip= ip; _}
| Vm.PVinPVH {vncterm= true; vncterm_ip= ip; _} ->
Service.PV_Vnc.start ~xs ?ip di.Xenctrl.domid
| _ ->
| PV {vncterm; vncterm_ip= ip; _}
| PVH {vncterm; vncterm_ip= ip; _}
| PVinPVH {vncterm; vncterm_ip= ip; _} ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when vncterm ->

Copy link
Member Author

@psafont psafont Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would mean I have to add explicit matches for when vncterm is false, which I'm trying to avoid.

if vncterm then
Service.PV_Vnc.start ~xs ?ip di.Xenctrl.domid
| HVM _ ->
()
with Device.Ioemu_failed (name, msg) ->
raise (Xenopsd_error (Failed_to_start_emulator (vm.Vm.id, name, msg)))
Expand Down
Loading