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
Unknown Object (File)
Mon, Apr 20, 5:28 PM
Unknown Object (File)
Mon, Apr 20, 12:00 PM
Unknown Object (File)
Mon, Apr 20, 2:37 AM
Unknown Object (File)
Thu, Apr 16, 5:59 PM
Unknown Object (File)
Tue, Apr 14, 9:02 AM
Unknown Object (File)
Sun, Apr 12, 9:05 PM
Unknown Object (File)
Sat, Apr 11, 2:57 PM
Unknown Object (File)
Sat, Apr 11, 1:45 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