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 14B501FF0E4 for ; Tue, 14 Jul 2026 12:42:25 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 8D356214E7; Tue, 14 Jul 2026 12:42:11 +0200 (CEST) From: Fiona Ebner To: pve-devel@lists.proxmox.com Subject: [PATCH-SERIES qemu-server v3 0/4] cpu config: enable hv-evmcs for Windows 11/2022/2025 to mitigate issues with VBS Date: Tue, 14 Jul 2026 12:41:47 +0200 Message-ID: <20260714104201.71308-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1784025708237 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.302 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_LOW -0.7 Sender listed at https://www.dnswl.org/, low 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: GDXLJQIZBZ5N4FR3Y2TV2IHBQWU4QEVS X-Message-ID-Hash: GDXLJQIZBZ5N4FR3Y2TV2IHBQWU4QEVS X-MailFrom: f.ebner@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: Changes in v3: * Improve commit message in patch 1. * Different approach, enable recommended hv-evmcs flag instead of disabling apicv flags. * Mock host CPU vendor in tests. Changes in v2: * Disable MBEC by default for machine versions < 11.0 for backwards compat with older kernel and QEMU. As reported in the community forum [0] and enterprise support, Windows with MBEC and VBS can have issues on certain Intel CPUs, leading to guest freezes and 100% CPU usage. The detection/enabling of APICv support in Windows was determined to be related. With hv_emcs, that feature is not used in Windows anymore. The flag is also recommended in the QEMU documentation [1], so start using it with a bumped 11.0+pve2 machine version. [0]: https://forum.proxmox.com/threads/184178 [1]: https://www.qemu.org/docs/master/system/i386/hyperv.html#recommendations qemu-server: Fiona Ebner (4): cpu config: disable vmx-mbec flag for machine versions < 11.0 cpu config: use $version_guard rather than passing $machine_version cpu config: enable hv-evmcs for Windows 11/2022/2025 to mitigate issues with VBS test: cfg2cmd: allow setting host CPU vendor for a given test src/PVE/QemuServer.pm | 2 +- src/PVE/QemuServer/CPUConfig.pm | 40 ++++++++++++++----- src/PVE/QemuServer/Machine.pm | 3 +- src/test/cfg2cmd/cpu-level.conf.cmd | 2 +- .../cfg2cmd/win11-amd-host-11.0+pve2.conf | 5 +++ .../cfg2cmd/win11-amd-host-11.0+pve2.conf.cmd | 26 ++++++++++++ src/test/cfg2cmd/win11-host-11.0+pve2.conf | 4 ++ .../cfg2cmd/win11-host-11.0+pve2.conf.cmd | 26 ++++++++++++ src/test/run_config2command_tests.pl | 17 ++++++++ 9 files changed, 112 insertions(+), 13 deletions(-) create mode 100644 src/test/cfg2cmd/win11-amd-host-11.0+pve2.conf create mode 100644 src/test/cfg2cmd/win11-amd-host-11.0+pve2.conf.cmd create mode 100644 src/test/cfg2cmd/win11-host-11.0+pve2.conf create mode 100644 src/test/cfg2cmd/win11-host-11.0+pve2.conf.cmd Summary over all repositories: 9 files changed, 112 insertions(+), 13 deletions(-) -- Generated by git-murpp 0.5.0