summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-02-03 08:23:02 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-02-03 08:23:02 +0000
commit51dc42ac86cd5bdfc25c9f16f7d5791604cb1737 (patch)
tree94eb38d3b950a1a14f61b4177cd691fd3bf5aa62
parentf98986740af40910be097b5abe68b489b9ce8bf8 (diff)
yasuoka@ reported that a "guest shutdown" resulted in a reboot instead
of a shutdown. Correct a mistake in rev 1.11 to make this trigger a shutdown again. ok reyk@
-rw-r--r--sys/dev/pv/vmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c
index 9ddc31bad65..47b4c90b0fb 100644
--- a/sys/dev/pv/vmt.c
+++ b/sys/dev/pv/vmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmt.c,v 1.11 2017/01/10 17:16:39 reyk Exp $ */
+/* $OpenBSD: vmt.c,v 1.12 2017/02/03 08:23:01 jsg Exp $ */
/*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
@@ -595,7 +595,7 @@ vmt_do_shutdown(struct vmt_softc *sc)
{
vmt_tclo_state_change_success(sc, 1, VM_STATE_CHANGE_HALT);
vm_rpc_send_str(&sc->sc_tclo_rpc, VM_RPC_REPLY_OK);
- pvbus_reboot(&sc->sc_dev);
+ pvbus_shutdown(&sc->sc_dev);
}
void