fix max allowed vcpus error message

This commit is contained in:
Dietmar Maurer 2015-03-02 06:45:57 +01:00
parent 025e1d900b
commit 3030d2d35c

View File

@ -2817,7 +2817,7 @@ sub config_to_command {
my $allowed_vcpus = $cpuinfo->{cpus}; my $allowed_vcpus = $cpuinfo->{cpus};
die "MAX $maxcpus vcpus allowed per VM on this node\n" die "MAX $allowed_vcpus vcpus allowed per VM on this node\n"
if ($allowed_vcpus < $maxcpus); if ($allowed_vcpus < $maxcpus);
push @$cmd, '-smp', "$vcpus,sockets=$sockets,cores=$cores,maxcpus=$maxcpus"; push @$cmd, '-smp', "$vcpus,sockets=$sockets,cores=$cores,maxcpus=$maxcpus";