Page MenuHomeFreeBSD

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

Authored by royger on Wed, Feb 25, 11:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 15, 7:45 AM
Unknown Object (File)
Sat, Mar 14, 2:31 PM
Unknown Object (File)
Wed, Mar 4, 1:33 PM
Unknown Object (File)
Wed, Mar 4, 12:39 AM
Unknown Object (File)
Mon, Mar 2, 7:20 AM
Unknown Object (File)
Sun, Mar 1, 6:24 AM
Unknown Object (File)
Sun, Mar 1, 3:40 AM
Unknown Object (File)
Thu, Feb 26, 8:01 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