]> git.proxmox.com Git - qemu-server.git/commitdiff
memory hotplug option is not hotpluggable
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 9 Feb 2015 15:47:52 +0000 (16:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Feb 2015 05:32:08 +0000 (06:32 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm
changelog.Debian

index 52b1a1cfaffe7f2321bc9c39a7157712a731adf1..556bbb75151c9341036d6a22c428ae802aaccf89 100644 (file)
@@ -3746,7 +3746,6 @@ sub set_migration_caps {
 
 my $fast_plug_option = {
     'name' => 1,
-    'hotplug' => 1,
     'onboot' => 1, 
     'shares' => 1,
     'startup' => 1,
@@ -3790,7 +3789,9 @@ sub vmconfig_hotplug_pending {
     foreach my $opt (@delete) {
        next if $selection && !$selection->{$opt};
        eval {
-           if ($opt eq 'tablet') {
+           if ($opt eq 'hotplug') {
+               die "skip\n" if ($conf->{hotplug} =~ /memory/);
+           } elsif ($opt eq 'tablet') {
                die "skip\n" if !$hotplug_features->{usb};
                if ($defaults->{tablet}) {
                    vm_deviceplug($storecfg, $conf, $vmid, $opt);
@@ -3834,7 +3835,9 @@ sub vmconfig_hotplug_pending {
        next if $selection && !$selection->{$opt};
        my $value = $conf->{pending}->{$opt};
        eval {
-           if ($opt eq 'tablet') {
+           if ($opt eq 'hotplug') {
+               die "skip\n" if ($value =~ /memory/) || ($value !~ /memory/ && $conf->{hotplug} =~ /memory/);
+           } elsif ($opt eq 'tablet') {
                die "skip\n" if !$hotplug_features->{usb};
                if ($value == 1) {
                    vm_deviceplug($storecfg, $conf, $vmid, $opt);
index 4a7966f09c276eb379492921a76543172425db94..f8bcbd93d2cfe3138fe20767a6297ed7406c756e 100644 (file)
@@ -1,6 +1,8 @@
 qemu-server (3.3-15) unstable; urgency=low
 
   * code cleanup: add foreach_dimm sub
+  
+  * hotplug: memory hotplug option is not hotpluggable
 
  -- Proxmox Support Team <support@proxmox.com>  Mon, 09 Feb 2015 07:05:05 +0100