Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159105326
D29406.id86570.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
844 B
Referenced Files
None
Subscribers
None
D29406.id86570.diff
View Options
Index: sys/dev/xen/control/control.c
===================================================================
--- sys/dev/xen/control/control.c
+++ sys/dev/xen/control/control.c
@@ -446,7 +446,7 @@
xctrl->xctrl_watch.max_pending = 1;
xs_register_watch(&xctrl->xctrl_watch);
- if (xen_pv_domain())
+ if (xen_pv_shutdown_handler())
EVENTHANDLER_REGISTER(shutdown_final, xen_pv_shutdown_final, NULL,
SHUTDOWN_PRI_LAST);
Index: sys/x86/include/xen/xen-os.h
===================================================================
--- sys/x86/include/xen/xen-os.h
+++ sys/x86/include/xen/xen-os.h
@@ -61,6 +61,13 @@
return (!xen_hvm_domain() || xen_vector_callback_enabled);
}
+static inline bool
+xen_pv_shutdown_handler(void)
+{
+
+ return (xen_pv_domain());
+}
+
static inline bool
xen_pv_disks_disabled(void)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 11, 4:41 AM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33867335
Default Alt Text
D29406.id86570.diff (844 B)
Attached To
Mode
D29406: xen/control: introduce xen_pv_shutdown_handler()
Attached
Detach File
Event Timeline
Log In to Comment