summaryrefslogtreecommitdiff
path: root/debian/z10_xen-vcpu-hotplug.rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/z10_xen-vcpu-hotplug.rules')
-rw-r--r--debian/z10_xen-vcpu-hotplug.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/z10_xen-vcpu-hotplug.rules b/debian/z10_xen-vcpu-hotplug.rules
new file mode 100644
index 0000000..bfb0875
--- /dev/null
+++ b/debian/z10_xen-vcpu-hotplug.rules
@@ -0,0 +1,8 @@
+# Hotplug CPU support
+ATTR{[dmi/id]sys_vendor}!="Xen", GOTO="xen_hotadd_end"
+
+# CPU hotadd request
+SUBSYSTEM=="cpu", ACTION=="add", DEVPATH=="/devices/system/cpu/cpu[0-9]*", TEST=="online", ATTR{online}="1"
+
+LABEL="xen_hotadd_end"
+