File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -302,9 +302,11 @@ let shutdown_wait_for_ack (t: Xenops_task.t) ?(timeout=60.) ~xc ~xs domid req =
302302 let di = Xenctrl. domain_getinfo xc domid in
303303 let uuid = get_uuid ~xc domid in
304304 if di.Xenctrl. hvm_guest then begin
305- if Xenctrl. hvm_check_pvdriver xc domid
306- then debug " VM = %s; domid = %d; HVM guest with PV drivers: not expecting any acknowledgement" (Uuid. to_string uuid) domid
307- else Xenctrl. domain_shutdown xc domid (shutdown_to_xc_shutdown req)
305+ if not (Xenctrl. hvm_check_pvdriver xc domid)
306+ then begin
307+ debug " VM = %s; domid = %d; HVM guest without PV drivers: not expecting any acknowledgement" (Uuid. to_string uuid) domid;
308+ Xenctrl. domain_shutdown xc domid (shutdown_to_xc_shutdown req)
309+ end
308310 end else begin
309311 debug " VM = %s; domid = %d; Waiting for PV domain to acknowledge shutdown request" (Uuid. to_string uuid) domid;
310312 let path = control_shutdown ~xs domid in
You can’t perform that action at this time.
0 commit comments