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
F161191094: D55507.diff
Wed, Jul 1, 11:05 AM
Unknown Object (File)
Tue, Jun 30, 8:26 AM
Unknown Object (File)
Sun, Jun 28, 5:24 AM
Unknown Object (File)
Fri, Jun 26, 1:03 AM
Unknown Object (File)
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
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