mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 17:01:46 +00:00
config to command: avoid line bloat, keep cmd definition near initial pushes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
326704e73f
commit
74fe3d9a7b
@ -3502,7 +3502,6 @@ sub config_to_command {
|
|||||||
my ($storecfg, $vmid, $conf, $defaults, $forcemachine, $forcecpu,
|
my ($storecfg, $vmid, $conf, $defaults, $forcemachine, $forcecpu,
|
||||||
$pbs_backing) = @_;
|
$pbs_backing) = @_;
|
||||||
|
|
||||||
my $cmd = [];
|
|
||||||
my ($globalFlags, $machineFlags, $rtcFlags) = ([], [], []);
|
my ($globalFlags, $machineFlags, $rtcFlags) = ([], [], []);
|
||||||
my $devices = [];
|
my $devices = [];
|
||||||
my $bridges = {};
|
my $bridges = {};
|
||||||
@ -3564,11 +3563,9 @@ sub config_to_command {
|
|||||||
my $use_old_bios_files = undef;
|
my $use_old_bios_files = undef;
|
||||||
($use_old_bios_files, $machine_type) = qemu_use_old_bios_files($machine_type);
|
($use_old_bios_files, $machine_type) = qemu_use_old_bios_files($machine_type);
|
||||||
|
|
||||||
|
my $cmd = [];
|
||||||
if ($conf->{affinity}) {
|
if ($conf->{affinity}) {
|
||||||
push @$cmd, "/usr/bin/taskset";
|
push @$cmd, '/usr/bin/taskset', '--cpu-list', '--all-tasks', $conf->{affinity};
|
||||||
push @$cmd, "--cpu-list";
|
|
||||||
push @$cmd, "--all-tasks";
|
|
||||||
push @$cmd, $conf->{affinity};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
push @$cmd, $kvm_binary;
|
push @$cmd, $kvm_binary;
|
||||||
|
Loading…
Reference in New Issue
Block a user