[pve-devel] [PATCH 5/7] vmconfig_hotplug_pending : add cpu hotplug

Dietmar Maurer dietmar at proxmox.com
Wed Nov 19 10:09:16 CET 2014


We have 'sockets' and 'cores' inside out VM config. Your CPU hotplug
simply use $cores

Note: we start the VM with $socket*$cores CPUs

    my $total_cores = $sockets * $cores;

So I guess this is a bug?

>  sub qemu_block_set_io_throttle {
> @@ -3519,7 +3520,13 @@ sub vmconfig_hotplug_pending {
>  		    delete $conf->{pending}->{$opt};
>  		}
>  	    }
> -	}
> +	} elsif($opt eq 'cores'){
> +	    if(PVE::QemuServer::qemu_cpu_hotplug($vmid, $conf, $conf-
> >{pending}->{$opt})){
> +		$conf->{$opt} = $conf->{pending}->{$opt};
> +		delete $conf->{pending}->{$opt};
> +	    }
> +        }
> +




More information about the pve-devel mailing list