HomeFreeBSD

xen: use an hypercall for shutdown and reboot

Description

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

Details

Provenance
roygerAuthored on Jan 13 2022, 1:47 PM
Parents
rG9b6aa99e1f20: Revert "Introduce MODULES_EXCLUDE"
Branches
Unknown
Tags
Unknown