[pve-devel] [PATCH qemu-server] fixup: use parse_property_string instead of parse_cpu_conf_basic
Stefan Reiter
s.reiter at proxmox.com
Thu Jul 9 14:41:14 CEST 2020
The latter was removed and replaced with a validator.
Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
Too much Rust and static compilation...
PVE/QemuMigrate.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 96de0db..b699b67 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -233,7 +233,7 @@ sub prepare {
# Since the parameter itself contains no reference to a custom model,
# this makes migration independent of changes to "cpu-models.conf".
if ($conf->{cpu}) {
- my $cpuconf = PVE::QemuServer::CPUConfig::parse_cpu_conf_basic($conf->{cpu});
+ my $cpuconf = PVE::JSONSchema::parse_property_string('pve-cpu-conf', $conf->{cpu});
if ($cpuconf && PVE::QemuServer::CPUConfig::is_custom_model($cpuconf->{cputype})) {
$self->{forcecpu} = PVE::QemuServer::CPUConfig::get_cpu_from_running_vm($pid);
}
--
2.20.1
More information about the pve-devel
mailing list