Skip to content

Commit 1e4a7c8

Browse files
author
xen-git
committed
Merge commit '468ce0a7684d43f8cb0b18e4f235cf472925aff1'
2 parents 4986629 + ae1363e commit 1e4a7c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ocaml/xenops/domain.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +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-
debug "VM = %s; domid = %d; HVM guest with PV drivers: not expecting any acknowledgement" (Uuid.to_string uuid) domid;
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
306310
end else begin
307311
debug "VM = %s; domid = %d; Waiting for PV domain to acknowledge shutdown request" (Uuid.to_string uuid) domid;
308312
let path = control_shutdown ~xs domid in

0 commit comments

Comments
 (0)