You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
618 B

  1. # On QEMU/KVM machines we want to add memory and cpus as soon as they appear
  2. # As of 2021-09-29, the file 40-vm-hotadd.rules does exactly the same thing for Xen and Hyper-V
  3. ATTR{[dmi/id]sys_vendor}=="QEMU", GOTO="vm_hotadd_apply"
  4. GOTO="vm_hotadd_end"
  5. LABEL="vm_hotadd_apply"
  6. # Memory hotadd request
  7. SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}!="online", ATTR{state}="online"
  8. # CPU hotadd request
  9. SUBSYSTEM=="cpu", ACTION=="add", DEVPATH=="/devices/system/cpu/cpu[0-9]*", TEST=="online", ATTR{online}!="1", ATTR{online}="1"
  10. LABEL="vm_hotadd_end"