From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 64B5F6D0C1 for ; Thu, 12 Aug 2021 20:17:58 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 512BE26768 for ; Thu, 12 Aug 2021 20:17:28 +0200 (CEST) Received: from mail.herold.me (mail.herold.me [IPv6:2a02:8106:0:5e02:42:c0ff:fea8:366]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 082722675C for ; Thu, 12 Aug 2021 20:17:24 +0200 (CEST) X-Virus-Scanned: Yes From: Constantin Herold DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=herold.me; s=mail; t=1628792234; bh=gvbbRvnMAv399oLHsgp73vUeKv2/UH6tZjGFJ7ErcPI=; h=From:To:Cc:Subject; b=NCPqPU4Prkz1wGtL2hvNWiEWaI5FkVMuDHEhV9oRxpXdWWzEBsUyP2EvLxeLl/C2K OodKeyOXxTOwNZpfpIN18t6eFDbm9HAOYAaqqgpfu50MKAZs8HDDK/wxV54WlfyR57 ZcSRV1YuTF5Slf2hN0g4GZ9R01Yw3IzUKlmLVlko= To: pve-devel@lists.proxmox.com Date: Thu, 12 Aug 2021 20:16:42 +0200 Message-Id: <20210812181642.1818-1-proxmox8914@herold.me> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 1.350 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain KAM_INFOUSMEBIZ 0.75 Prevalent use of .info|.us|.me|.me.uk|.biz|xyz|id|rocks|life domains in spam/malware SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH qemu-server] fix #3581: pass size via argument for memory-backend-ram qmp call X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2021 18:17:58 -0000 Signed-off-by: Constantin Herold --- PVE/QemuServer/Memory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer/Memory.pm b/PVE/QemuServer/Memory.pm index f3e15f1..e34727f 100644 --- a/PVE/QemuServer/Memory.pm +++ b/PVE/QemuServer/Memory.pm @@ -155,7 +155,7 @@ sub qemu_memory_hotplug { eval { hugepages_update_locked($code); }; } else { - eval { mon_cmd($vmid, "object-add", 'qom-type' => "memory-backend-ram", id => "mem-$name", props => { size => int($dimm_size*1024*1024) } ) }; + eval { mon_cmd($vmid, "object-add", 'qom-type' => "memory-backend-ram", id => "mem-$name", size => int($dimm_size*1024*1024) ) }; } if (my $err = $@) { -- 2.23.0