[systemd-devel] [PATCH] Add the CPU hotplug rule
Zhenzhong Duan
zhenzhong.duan at oracle.com
Mon Sep 1 20:22:48 PDT 2014
Cpu doesn't get online automaticly after hotplug when we test guest cpu
add/remove in xen env.
I don't have an baremetal env to test this, but I think it's same.
The rule is missed in systemd but exist in legacy udev.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan at oracle.com>
---
rules/50-udev-default.rules | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/rules/50-udev-default.rules b/rules/50-udev-default.rules
index 2bf9c1e..ac44f81 100644
--- a/rules/50-udev-default.rules
+++ b/rules/50-udev-default.rules
@@ -71,4 +71,6 @@ KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
+KERNEL=="cpu[0-9]*", SUBSYSTEM=="cpu", ATTR{online}="1"
+
LABEL="default_permissions_end"
--
1.7.3
More information about the systemd-devel
mailing list