freebsd-dev/sys/dev/xen
Roger Pau Monné ca46f3289d xen: use an hypercall for shutdown and reboot
When running as a Xen guest it's easier to use an hypercall in order
to do power management operations (power off, power cycle). Do this
for all supported guest types (HVM and PVH). Note that for HVM the
power operation could also be done using ACPI, but there's no reason
to differentiate between PVH and HVM.

While there fix the shutdown handler to properly differentiate between
power cycle and power off requests.

Reported by: Freddy DISSAUX
MFC: 1 week
Sponsored by: Citrix Systems R&D
2022-01-13 16:54:30 +01:00
..
balloon xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
blkback xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
blkfront xen/blkfront: Remove CTLFLAG_NEEDGIANT from sysctl. 2021-12-25 21:24:24 -05:00
bus xen: use correct cache attributes for Xen specific memory regions 2021-08-12 09:18:32 +02:00
console xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
control xen: use an hypercall for shutdown and reboot 2022-01-13 16:54:30 +01:00
debug xen/dev: remove write-only variable 2021-11-30 17:11:57 -04:00
efi xen/efi: introduce a PV interface for EFI run time services for dom0 2021-02-16 15:26:12 +01:00
evtchn xen/devices: purge uses of intr_machdep.h 2021-10-21 09:39:16 +02:00
gntdev Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-10-19 21:22:56 -04:00
grant_table xen/grant_table: cleanup max_nr_grant_frames() 2021-07-28 17:27:04 +02:00
netback xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
netfront xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
privcmd xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
timer
xenpci dev/xen: clean up empty lines in .c and .h files 2020-09-01 21:45:08 +00:00
xenstore xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00