From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id BDE4E1FF0DF for ; Thu, 15 Oct 2026 09:55:13 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4308921677; Thu, 15 Oct 2026 09:54:35 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH qemu-server 0/5] small cleanup/refactor/fixes Date: Thu, 15 Oct 2026 09:52:14 +0200 Message-ID: <20261015075428.572882-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.370 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: MYNHP5K4GBVAYK47ZSW43YW3MSS5EAHI X-Message-ID-Hash: MYNHP5K4GBVAYK47ZSW43YW3MSS5EAHI X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: this series contains a few (more or less independent) cleanups, refactors and a one fix (3/5). This is a pre-requsisite for my upcoming rfc v2 of the pci-layout changes. While I based this on my recent hotplug v3 series [0], it should apply cleanly to master. 0: https://lore.proxmox.com/all/20261007142145.984970-1-d.csapak@proxmox.com/ Dominik Csapak (5): helpers: factor out the version parts parsing usb: drop always-true spice_usb3 feature flag net: use version guard for the machine version checks of NICs usb: factor out the default usb bus of the tablet drive device: check the machine version for blockdev only once src/PVE/QemuServer.pm | 41 ++++++++------------ src/PVE/QemuServer/DriveDevice.pm | 14 +++---- src/PVE/QemuServer/Helpers.pm | 22 ++++++++++- src/PVE/QemuServer/USB.pm | 13 ++++++- src/test/cfg2cmd/simple-11.0-binary.conf.cmd | 2 +- 5 files changed, 55 insertions(+), 37 deletions(-) -- 2.47.3