diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-02-02 17:52:47 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-02-02 17:52:47 +0000 |
commit | 2723176e82ce1395f04b2d4328817b28eb499af3 (patch) | |
tree | 32eba048c41c33034617b72a725eaeb8f7dccf5d /sys/dev/pv/xenvar.h | |
parent | 848453065448cd57923a6f38a376e35ad6ee353b (diff) |
A few reliability improvements in the power management interface
Nathanael Rensen <nathanael at list ! polymorpheus ! com> came up with
a few improvements to the event watcher and power management interface,
namely:
o Make sure to put our watcher on a list before issuing an XS_WATCH
command since Xen will raise the event right after it's been set up.
o The first time xen_control is called the "control/shutdown" node
may not exist, so skip printing the error message in this case.
o Acknowledge requests by writing back an empty string.
o log(9) reboot and halt requests like vmt(4) does.
Huge thanks!
Diffstat (limited to 'sys/dev/pv/xenvar.h')
-rw-r--r-- | sys/dev/pv/xenvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/xenvar.h b/sys/dev/pv/xenvar.h index 29c013d2ad0..34f381b78a7 100644 --- a/sys/dev/pv/xenvar.h +++ b/sys/dev/pv/xenvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xenvar.h,v 1.28 2016/01/29 19:12:26 mikeb Exp $ */ +/* $OpenBSD: xenvar.h,v 1.29 2016/02/02 17:52:46 mikeb Exp $ */ /* * Copyright (c) 2015 Mike Belopuhov @@ -19,7 +19,7 @@ #ifndef _XENVAR_H_ #define _XENVAR_H_ -#define XEN_DEBUG +/* #define XEN_DEBUG */ #ifdef XEN_DEBUG #define DPRINTF(x...) printf(x) |