From 4e76da95c052118606bed64f995c67b768c7356c Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 7 Jun 2016 17:57:45 +0200 Subject: [PATCH] Enable CPU and RAM hotplug on QEMU See also: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1233466 --- debian/extra/rules-ubuntu/40-vm-hotadd.rules | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/debian/extra/rules-ubuntu/40-vm-hotadd.rules b/debian/extra/rules-ubuntu/40-vm-hotadd.rules index 62a5a62..a1c09fc 100644 --- a/debian/extra/rules-ubuntu/40-vm-hotadd.rules +++ b/debian/extra/rules-ubuntu/40-vm-hotadd.rules @@ -1,14 +1,7 @@ -# On Hyper-V and Xen Virtual Machines we want to add memory and cpus as soon as they appear -ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", ATTR{[dmi/id]product_name}=="Virtual Machine", GOTO="vm_hotadd_apply" -ATTR{[dmi/id]sys_vendor}=="Xen", GOTO="vm_hotadd_apply" -GOTO="vm_hotadd_end" - -LABEL="vm_hotadd_apply" +# We want to add memory and cpus as soon as they appear # Memory hotadd request SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}="online" # CPU hotadd request SUBSYSTEM=="cpu", ACTION=="add", DEVPATH=="/devices/system/cpu/cpu[0-9]*", TEST=="online", ATTR{online}="1" - -LABEL="vm_hotadd_end" -- 2.7.4