Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178180332
D29406.1796209853.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
844 B
Referenced Files
None
Subscribers
None
D29406.1796209853.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
Wed, Dec 2, 11:10 AM (7 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42141361
Default Alt Text
D29406.1796209853.diff (844 B)
Attached To
Mode
D29406: xen/control: introduce xen_pv_shutdown_handler()
Attached
Detach File
Event Timeline