Page MenuHomeFreeBSD

xen/control: untie register of shutdown handler from xenstore
Needs ReviewPublic

Authored by royger on Feb 25 2026, 11:48 AM.
Tags
None
Referenced Files
F160386506: D55507.diff
Wed, Jun 24, 12:14 AM
Unknown Object (File)
Mon, Jun 22, 7:06 PM
Unknown Object (File)
Sun, Jun 21, 9:39 PM
Unknown Object (File)
Fri, Jun 19, 2:52 PM
Unknown Object (File)
Mon, Jun 15, 2:36 AM
Unknown Object (File)
Sat, Jun 13, 3:25 PM
Unknown Object (File)
Wed, Jun 10, 4:17 AM
Unknown Object (File)
Fri, Jun 5, 12:11 AM
Subscribers

Details

Summary

The current registration of the Xen specific shutdown handler is tied to
xenstore, as it's registered by a device that depends on xenstore being
available. However the shutdown hypercalls don't need xenstore, and hence
registration must not be tied to xenstore (as some domains might not even
have xenstore).

Move the registration of the shutdown handler into it's own isolated
function that gets called directly from a SYSINIT() block. Place the code
in xen_common.c, since the shutdown hypercall is available in all arches.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped