Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- PVE/API2/Qemu.pm | 4 ++-- PVE/QemuServer.pm | 2 +- PVE/QemuServer/Machine.pm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c7f45051..dc46e2e0 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1249,7 +1249,7 @@ __PACKAGE__->register_method({ $conf->{machine} = PVE::QemuServer::Machine::print_machine($machine_conf); } } - PVE::QemuServer::Machine::assert_valid_machine_property($conf, $machine_conf); + PVE::QemuServer::Machine::assert_valid_machine_property($machine_conf); $conf->{lock} = 'import' if $live_import_mapping; @@ -2112,7 +2112,7 @@ my $update_vm_api = sub { $conf->{pending}->{$opt} = $param->{$opt}; } elsif ($opt eq 'machine') { my $machine_conf = PVE::QemuServer::Machine::parse_machine($param->{$opt}); - PVE::QemuServer::Machine::assert_valid_machine_property($conf, $machine_conf); + PVE::QemuServer::Machine::assert_valid_machine_property($machine_conf); $conf->{pending}->{$opt} = $param->{$opt}; } elsif ($opt eq 'cipassword') { if (!PVE::QemuServer::Helpers::windows_version($conf->{ostype})) { diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index b3d5f8f2..19324e96 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -4182,7 +4182,7 @@ sub config_to_command { $machine_type_min .= "+pve$required_pve_version"; push @$machineFlags, "type=${machine_type_min}"; - PVE::QemuServer::Machine::assert_valid_machine_property($conf, $machine_conf); + PVE::QemuServer::Machine::assert_valid_machine_property($machine_conf); if (my $viommu = $machine_conf->{viommu}) { if ($viommu eq 'intel') { diff --git a/PVE/QemuServer/Machine.pm b/PVE/QemuServer/Machine.pm index a072ac29..7f03ef20 100644 --- a/PVE/QemuServer/Machine.pm +++ b/PVE/QemuServer/Machine.pm @@ -56,7 +56,7 @@ sub print_machine { } sub assert_valid_machine_property { - my ($conf, $machine_conf) = @_; + my ($machine_conf) = @_; my $q35 = $machine_conf->{type} && ($machine_conf->{type} =~ m/q35/) ? 1 : 0; if ($machine_conf->{viommu} && $machine_conf->{viommu} eq "intel" && !$q35) { die "to use Intel vIOMMU please set the machine type to q35\n"; -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel