public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu-server] fixup: use parse_property_string instead of parse_cpu_conf_basic
@ 2020-07-09 12:41 Stefan Reiter
  2020-07-09 12:47 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Reiter @ 2020-07-09 12:41 UTC (permalink / raw)
  To: pve-devel

The latter was removed and replaced with a validator.

Signed-off-by: Stefan Reiter <s.reiter@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: Re: [PATCH qemu-server] fixup: use parse_property_string instead of parse_cpu_conf_basic
  2020-07-09 12:41 [pve-devel] [PATCH qemu-server] fixup: use parse_property_string instead of parse_cpu_conf_basic Stefan Reiter
@ 2020-07-09 12:47 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2020-07-09 12:47 UTC (permalink / raw)
  To: Proxmox VE development discussion, Stefan Reiter

On 09.07.20 14:41, Stefan Reiter wrote:
> The latter was removed and replaced with a validator.
> 
> Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
> ---
> 
> Too much Rust and static compilation...
> 
>  PVE/QemuMigrate.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-09 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 12:41 [pve-devel] [PATCH qemu-server] fixup: use parse_property_string instead of parse_cpu_conf_basic Stefan Reiter
2020-07-09 12:47 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal