From 2dec9edcbb6b33fa123fc447eba0183578fa017c Mon Sep 17 00:00:00 2001 From: Steven Malis Date: Thu, 29 Oct 2026 13:20:36 -0400 Subject: [PATCH 1/2] vmm_tests: Fix kvp test flakiness by updating windows version Move the KVP integration test to Windows Server 2025, which includes a fix for a Windows COM activation race. On Server 2022, this race can lose WMI's server-registration notification, causing GET_IP_INFO to fail after 120 seconds with 0x80080005. Port microsoft/openvmm#4803 to feature/microvm/dev unchanged, for microsoft/nvx#1035, where the race failed NVX's WHP run of the test. (cherry picked from commit a738912219fffcee1fa9c153110f77e2f61e7477) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- vmm_tests/vmm_tests/tests/tests/multiarch/ic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm_tests/vmm_tests/tests/tests/multiarch/ic.rs b/vmm_tests/vmm_tests/tests/tests/multiarch/ic.rs index f699de10845..2de0b271858 100644 --- a/vmm_tests/vmm_tests/tests/tests/multiarch/ic.rs +++ b/vmm_tests/vmm_tests/tests/tests/multiarch/ic.rs @@ -15,7 +15,7 @@ use vmm_test_macros::openvmm_test; /// /// Windows-only right now, because the Linux images do not include the KVP IC /// daemon. -#[openvmm_test(uefi_x64(vhd(windows_datacenter_core_2022_x64)))] +#[openvmm_test(uefi_x64(vhd(windows_datacenter_core_2025_x64)))] async fn kvp_ic(config: PetriVmBuilder) -> anyhow::Result<()> { // Run with a NIC to perform IP address tests. let (mut vm, agent) = config.modify_backend(|c| c.with_nic()).run().await?; From 3d7512af653717aa9123595e993a56cb8587106a Mon Sep 17 00:00:00 2001 From: Pedro Henrique Penna Date: Thu, 29 Oct 2026 18:28:46 -0700 Subject: [PATCH 2/2] ci: run the Windows Server 2025 KVP test on Linux KVM Since the previous commit, a port of microsoft/openvmm#4803, the KVP IC test boots Windows Server 2025 instead of 2022. The x64-linux-amd-kvm and x64-linux-intel-mshv jobs selected it, but downloaded only the 2022 image, so both failed to resolve its artifacts in microsoft/openvmm#4803. Download the 2025 image for the KVM job, where the moved test passes. On MSHV, Server 2025's required initial reset consistently fails while the partition restores reset state: HvCallSetVpRegisters returns Invalid parameter. Exclude that test and its image there; KVM and the Windows-host jobs retain coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- flowey/flowey_hvlite/src/pipelines/checkin_gates.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/flowey/flowey_hvlite/src/pipelines/checkin_gates.rs b/flowey/flowey_hvlite/src/pipelines/checkin_gates.rs index c7346824529..ce58c029ddd 100644 --- a/flowey/flowey_hvlite/src/pipelines/checkin_gates.rs +++ b/flowey/flowey_hvlite/src/pipelines/checkin_gates.rs @@ -1666,6 +1666,8 @@ impl IntoPipeline for CheckinGatesCli { test_vmgs::VMGS_WITH_BOOT_ENTRY.into(), test_vmgs::VMGS_WITH_16K_TPM.into(), ]; + let mut linux_kvm_test_artifacts = linux_host_test_artifacts.clone(); + linux_kvm_test_artifacts.push(test_vhd::GEN2_WINDOWS_DATA_CENTER_CORE2025_X64.into()); // Prep variants needed by tests in the standard x64 filter // (e.g. boot_no_vmbus_windows needs the no-vmbus prepped VHD). @@ -1827,7 +1829,7 @@ impl IntoPipeline for CheckinGatesCli { resolve_vmm_tests_artifacts: vmm_tests_artifacts_linux_x86, // - No legal way to obtain gen1 pcat blobs on non-msft linux machines nextest_filter_expr: format!("{standard_filter} & !test(pcat_x64)"), - downloaded_artifacts: linux_host_test_artifacts.clone(), + downloaded_artifacts: linux_kvm_test_artifacts, prep_steps_variants: standard_x64_prep_variants.clone(), external_deps: VmmTestsExternalDeps::Linux(VmmTestsExternalDepsLinux { hugetlb_2mb_overcommit_pages: Some(HUGETLB_2MB_OVERCOMMIT_PAGES), @@ -1844,7 +1846,11 @@ impl IntoPipeline for CheckinGatesCli { target: CommonTriple::X86_64_LINUX_MUSL, resolve_vmm_tests_artifacts: vmm_tests_artifacts_linux_mshv_x86, // - No legal way to obtain gen1 pcat blobs on non-msft linux machines - nextest_filter_expr: format!("{standard_filter} & !test(pcat_x64)"), + // - Windows Server 2025 needs an initial reset, which MSHV rejects while + // restoring reset state. Keep its KVP test covered by KVM and Windows jobs. + nextest_filter_expr: format!( + "{standard_filter} & !test(pcat_x64) & !test(windows_datacenter_core_2025_x64_kvp_ic)" + ), downloaded_artifacts: linux_host_test_artifacts.clone(), prep_steps_variants: standard_x64_prep_variants.clone(), external_deps: VmmTestsExternalDeps::Linux(VmmTestsExternalDepsLinux {