HomeFreeBSD

xen: improve shutdown hook

Description

xen: improve shutdown hook

Make better use of the shutdown flags. In particular this now handles
standard reboot where RB_POWERCYCLE is not set, and indicates a crash
when the system has panicked.

While here, give the function a prefix.

Reviewed by: royger, markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42343

Details

Provenance
mhorneAuthored on Nov 23 2023, 3:27 PM
Reviewer
royger
Differential Revision
D42343: xen: improve shutdown hook
Parents
rG2ce1c45b3411: iscsi: adjust shutdown_pre_sync handler
Branches
Unknown
Tags
Unknown