From 4cca15b134a5d23b5f04b5541b76f2fc4066a3ce Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Tue, 19 May 2026 18:25:58 +0000 Subject: [PATCH] DLPX-97279 Add udev rule to bring hot-added CPUs online When a hypervisor hot-inserts a vCPU while the VM is running, the kernel fires an add event for the new cpu device. This rule writes 1 to the device's online sysfs attribute, replacing the per-minute cpu_online cron that was removed from dlpx-app-gate. Co-Authored-By: Claude Sonnet 4.6 --- .gitignore | 4 +++- files/common/etc/udev/rules.d/70-cpu-online.rules | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 files/common/etc/udev/rules.d/70-cpu-online.rules diff --git a/.gitignore b/.gitignore index 169670ed6..ea6f928c5 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,6 @@ debian/tmp #IntelliJ IDEA adds the below files delphix-platform.iml -.idea/ \ No newline at end of file +.idea/ + +.worktrees/ \ No newline at end of file diff --git a/files/common/etc/udev/rules.d/70-cpu-online.rules b/files/common/etc/udev/rules.d/70-cpu-online.rules new file mode 100644 index 000000000..10805fec5 --- /dev/null +++ b/files/common/etc/udev/rules.d/70-cpu-online.rules @@ -0,0 +1 @@ +SUBSYSTEM=="cpu", ACTION=="add", ATTR{online}="1"