From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 8EE531FF389 for ; Wed, 22 May 2024 14:11:37 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 01896B949; Wed, 22 May 2024 14:11:49 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Wed, 22 May 2024 14:05:53 +0200 In-Reply-To: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> References: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> MIME-Version: 1.0 Message-ID: List-Id: Proxmox VE development discussion List-Post: From: Daniel Krambrock via pve-devel Precedence: list Cc: Daniel Krambrock X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Proxmox VE development discussion List-Help: Subject: [pve-devel] [PATCH qemu] close #4369: make VMID suggestion strategy configurable Content-Type: multipart/mixed; boundary="===============6409954315281485655==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============6409954315281485655== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com 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 CFF46C49A6 for ; Wed, 22 May 2024 14:11:47 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B6F8DB86C for ; Wed, 22 May 2024 14:11:47 +0200 (CEST) Received: from vhrz1173.hrz.uni-marburg.de (vhrz1173.HRZ.Uni-Marburg.DE [137.248.1.43]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 22 May 2024 14:11:47 +0200 (CEST) Received: from vhrz1173.hrz.uni-marburg.de (vhrz1173.HRZ.Uni-Marburg.DE [137.248.1.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by vhrz1865.HRZ.Uni-Marburg.DE (Postfix) with ESMTPS id 4VkqlX7012zygZ; Wed, 22 May 2024 14:06:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-marburg.de; s=dkim; t=1716379577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7n7jevRUpMRGVexPRka3BxGfwN65Y5FyX8E8rYYslig=; b=f4ZvNgzJQRk4LBczHTGb3kFr5MZn/mYDT6nkTJyjjQUe8c2g+xTQ/4xRD4BVBfq4m3MXuH SOp45rhLYX0diiP3Lv2/Q57QcCOIrG86llQ1ecP8g6E0AJMyBFBzS7JsS1mPZ4A/ghSjhW 5IqKlVTJMqql1+xEssC1cimyUNWwTQM= Authentication-Results: smtpd-out; dkim=none; spf=none (smtpd-out: domain of root@vhrz2211.hrz.uni-marburg.de has no SPF policy when checking 137.248.1.43) smtp.mailfrom=root@vhrz2211.hrz.uni-marburg.de Received: from vhrz2211.hrz.uni-marburg.de (vhrz2211.HRZ.Uni-Marburg.DE [172.25.3.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by vhrz1865.HRZ.Uni-Marburg.DE (Postfix) with ESMTPS id 4VkqlX60lzzygP; Wed, 22 May 2024 14:06:16 +0200 (CEST) Received: from root by vhrz2211.hrz.uni-marburg.de with local (Exim 4.96) (envelope-from ) id 1s9kjY-000Cop-2Z; Wed, 22 May 2024 14:06:16 +0200 From: Daniel Krambrock To: pve-devel@lists.proxmox.com Subject: [PATCH qemu] close #4369: make VMID suggestion strategy configurable Date: Wed, 22 May 2024 14:05:53 +0200 Message-Id: <20240522120553.49114-5-krambrock@hrz.uni-marburg.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> References: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Score: -4.80 / 12.00 / 15.00 X-Rspamd-Queue-Id: 4VkqlX7012zygZ X-SPAM-LEVEL: Spam detection results: 0 AWL 0.016 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 DMARC_PASS -0.1 DMARC pass policy SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record On guest deletion the VMID is added to the list of previously used VMIDs Signed-off-by: Daniel Krambrock --- PVE/API2/Qemu.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 2a1d4d7..c24b317 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2313,6 +2313,7 @@ __PACKAGE__->register_method({ }); }; + PVE::UsedVmidList::add_vmid($vmid); return $rpcenv->fork_worker('qmdestroy', $vmid, $authuser, $realcmd); }}); -- 2.39.2 --===============6409954315281485655== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============6409954315281485655==--