Lines Matching +full:needs +full:- +full:reset +full:- +full:on +full:- +full:resume
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
33 /*-
34 * HVM suspend/resume support:
55 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
108 #include <xen/xen-os.h>
122 /*--------------------------- Forward Declarations --------------------------*/
131 /*-------------------------- Private Data Structures -------------------------*/
151 /*------------------------------ Event Handlers ------------------------------*/
197 KASSERT((PCPU_GET(cpuid) == 0), ("Not running on CPU#0"));
200 * Be sure to hold Giant across DEVICE_SUSPEND/RESUME.
213 * are resuming, and will allow us to reset per-cpu
214 * vcpu_info on resume.
225 * are resuming, and will allow us to reset per-cpu
226 * vcpu_info on resume.
252 * Reset grant table info.
262 * resume CPUs.
273 * FreeBSD really needs to add DEVICE_SUSPEND_CANCEL or
280 * Warm up timecounter again and reset system clock.
282 timecounter->tc_get_timecount(timecounter);
326 /* RB_POWERCYCLE or regular reset. */
330 /*------------------------------ Event Reception -----------------------------*/
353 if (!strcmp(result, reason->name)) {
354 reason->handler();
363 /*------------------ Private Device Attachment Functions --------------------*/
371 * parent "control" directory should be read-only for the guest.
373 xs_write(XST_NIL, "control", "feature-poweroff", "1");
374 xs_write(XST_NIL, "control", "feature-reboot", "1");
375 xs_write(XST_NIL, "control", "feature-suspend", "1");
391 BUS_ADD_CHILD(parent, 0, driver->name, 0);
414 * \return On success, 0. Otherwise an errno value indicating the
425 xctrl->xctrl_watch.node = "control/shutdown";
426 xctrl->xctrl_watch.callback = xctrl_on_watch_event;
427 xctrl->xctrl_watch.callback_data = (uintptr_t)xctrl;
430 * on that single node, hence there's no need to queue more that one
433 xctrl->xctrl_watch.max_pending = 1;
434 xs_register_watch(&xctrl->xctrl_watch);
449 * \return On success, 0. Otherwise an errno value indicating the
460 xs_unregister_watch(&xctrl->xctrl_watch);
473 /*-------------------- Private Device Attachment Data -----------------------*/