Skip to content

openvmm: pin microVM v8.0, reorganized onto upstream main - #2039

Merged
Pedro Henrique Penna (ppenna) merged 2 commits into
devfrom
agents/nvx-rebase-openvmm-chain-reorganize-ready
Nov 23, 2026
Merged

Pedro Henrique Penna (ppenna) merged 2 commits into
devfrom
agents/nvx-rebase-openvmm-chain-reorganize-ready

Conversation

@ppenna

@ppenna Pedro Henrique Penna (ppenna) commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What does this pull request change?

This PR pins openvmm to microVM v8.0. v8.0 is a major-version reorganization of the 370-commit microVM chain of feature/microvm/dev, which ends at NVX's previous pin 09524b79c, on the same upstream base, bf353460f. Upstream main has not moved past that base, so the release drops no commit and nothing conflicts with upstream. The reorganization folds the 15 fixups of the v7.2 line into the commits that they fix, so the chain shrinks to 355 commits, and every one of them builds:

  • 15 folds. These are the PR13 and PR18 fixups that pull requests added after v7.0, the v7.1 rebase's sha2 lock-file fixup, and the five fixups of the v7.2 rebase. The table under OpenVMM pin says where each one went. Each commit that takes a fold keeps its author and date, and its message lists the subjects that it folds. Every folded fixup has the same author as the commit that it went into.
  • Adapted commits. Six later commits change because a fold now comes before them: positions 124, 163, 186, 239, 330, and 331. Six more differ only in the context of their hunks.
  • Formatting. Positions 301 and 304 now take rustfmt's layout of the test that each adds to virt_kvm. cargo xtask fmt never reaches those files, because virt_kvm/src/arch.rs declares mod x86_64 inside cfg_select!. The v7.2 rebase reported this drift and left it for this reorganization. This layout is the only difference between the pin's tree and the previous pin's tree: 5 lines added and 8 removed, all in two tests.

NVX's code does not change. The vectors, excerpts, contract versions, and CPU profiles that nvx copies from OpenVMM match the pin.

  • Gitlink commit (dfd53503986): moves openvmm from 09524b79c to 899dcd63f, and nothing else.
  • Roadmap commit (90e6923c219): remaps doc/openvmm-upstream-roadmap.md onto the reorganized commits, the analyses of the commits after the mapped tip included: it drops the analyses of the folded fixups, and the analyses that cited them now cite the commits that took their changes. It renumbers every position after the first fold, and it records where each fold went in a new section, The v8.0 reorganization. The commit mapping and the table of later commits now name each commit's v7.2 position and drop the folded fixups. The open upstream pull requests are dated 2026-11-22: none merged, and none that closed reopened.

Start with OpenVMM pin below, then the roadmap's The v8.0 reorganization.

Landed in OpenVMM: feature/microvm/release/v7.2 was fast-forwarded to the previous pin, 09524b79c, and feature/microvm/dev now points to the pin, 899dcd63f; see Landing order.

Left out: this PR leaves out a fix for the VPCI relay's hot-add race, which makes OpenVMM's vpci_relay_hot_remove test fail intermittently (see OpenVMM CI below). The race predates this release.

Limitation: none in behavior. Apart from the layout of two tests, the pin's tree is the previous pin's, so no ABI, snapshot format, or wire format changes. What changes is the history: positions after 047 move, and commits that took a fold have new contents.

Why is this change needed?

The v7.2 line carried 15 fixups that the roadmap assigned to earlier commits "at the next reorganization":

The reorganization folds each fix into the commit that introduced the code that it fixes. Every commit then builds on upstream main, and each roadmap PR carries its own fixes. Upstream main has not moved since the v7.2 base, so reorganizing on the same base keeps the folds apart from any upstream change. The tree check shows that the reorganization changes no behavior.

A release completes no issue, so this pull request carries the no-issue label.

How was this change validated?

OpenVMM

  • Chain: python scripts\openvmm_release.py check-chain --dir <v8.0 worktree> --new-base bf353460f --old-base bf353460f --old-head 09524b79c passes. It shows 355 commits, 0 merges, and 355 good SSH signatures. Range diff: ==317, !=38, <15, >0.

  • Per-commit: check-commits' commands ran at every one of the 355 commits:

    • rustfmt --check --edition 2024 on the Rust files that the commit changes;
    • cargo check --locked --workspace --all-targets;
    • cargo xtask fmt --pass lints;
    • at the five commits that change the pipelines, positions 002, 112, 122, 123, and 181, cargo xtask fmt --pass verify-flowey.

    They ran incrementally in one checkout per host, with Rust 1.97.1:

    • Linux (Ubuntu in WSL2): all 355 commits pass.
    • Windows (Windows 11, MSVC, vtpm_util included): all 355 commits pass. Two runs failed for reasons outside the code and passed when run again: position 003 ran out of disk space, and at position 121 the ms-tcg-tpm-sys build script hit a Windows file-sharing violation (os error 32) while copying a file.
  • At the head (899dcd63f), with Rust 1.97.1:

    • cargo xtask fmt passes every pass on Linux and Windows, verify-flowey among them.
    • cargo clippy --workspace --all-targets -- -D warnings passes on Linux. On Windows, it passes without guest_test_uefi, opentmk_executor, and vtpm_util.
    • On Linux, cargo nextest run --locked -p consomme -p kvm -p net_backend_resources -p net_consomme -p openvmm_core -p openvmm_defs -p openvmm_entry -p openvmm_helpers -p openvmm_ttrpc_vmservice -p pal -p petri -p virt -p virt_kvm -p virt_mshv -p virt_mshv_vtl -p virt_support_x86emu -p virtiofs -p x86defs passes 1685 of 1685 tests (69 skipped). cargo doc --no-deps passes for the same packages.
    • On Windows, the same nextest command, with virt_whp in place of the Linux-only packages, passes 1491 of 1491 tests (23 skipped).
    • These are the packages that the folds, the adapted commits, and the formatting change.
    • cargo xflowey vmm-tests-run --filter "test(microvm)" passes 7 of 7 on KVM, in Ubuntu on WSL2 (213 skipped), including the two ttrpc microVM tests. On WHP, on Windows 11, it passes 7 of 7 (505 skipped).
  • Tree: git diff 09524b79c 899dcd63f shows only the two test layouts above, in vmm_core/virt_kvm/src/arch/x86_64/smm.rs and msr_state.rs.

  • OpenVMM CI: Run 45128269465, at 899dcd63f: python scripts\nvx.py check-openvmm-ci passes. All six required jobs passed:

    • unit tests on x64-linux and x64-windows;
    • vmm-tests on x64-linux-amd-kvm, x64-linux-intel-mshv, and x64-windows-intel;
    • vmm-tests on x64-windows-amd, which failed one test on its first attempt and passed when the job was run again (attempt 2, 304 of 304).

    On the first attempt, 33 of the run's 37 jobs passed, one was skipped, and three failed:

    • run vmm-tests [x64-windows-amd] (required). x86_64::openvmm_openhcl_linux_x64_vpci_relay_hot_remove timed out after OpenHCL panicked at vm/devices/vmbus/vmbus_channel/src/simple.rs:234, assert!(self.running) in SimpleDeviceWrapper::open. This is a race between the guest and OpenHCL's device start:
      • The VPCI relay offers the relayed bus's channel to the guest while it builds the bus, before start_stopped_units starts the bus's state unit. A guest that opens the channel first reaches a device that has not started.
      • The chain's two-phase unit start widens that window: it sends ConfirmStart after Start before a unit's dependants start (position 213, refined at position 236).
      • Upstream added the test in vmm_tests: test vpci_relay hot add and hot remove openvmm#5190, which the v7.2 base includes. Since then, it failed the same way in 5 of 25 OpenVMM CI runs of the chain: feature/microvm/dev at 5c82edac4, 21b1a55d0, eff41b13f, and 6323fa7b9, and this run. It passed in the other 20, the previous pin 09524b79c among them.
      • The pin's tree is the previous pin's, so this release neither adds nor widens the race. Fixing it is a change of its own; see Left out.
    • run vmm-tests [x64-windows-intel-tdx] (not required). The four multiarch::tpm::*_tdx_hw_ak_stable and *_tdx_hw_seal_hash tests fail because OpenHCL cannot derive keys when hardware sealing is required. On the TDX runner that this job used, the same four tests fail with the same error for virtio: Notify guests of runtime config changes openvmm#5150 (run 44921582020), which is upstream code without the chain. The TDX jobs that passed for the previous pin and for upstream main at bf353460f ran on other runners.
    • run vmm-tests [x64-windows-amd-snp] (not required). snp_seal_signer and snp_vmbus_relay time out after the runner's Hyper-V could not stop a VM that an earlier test had left. On the same SNP runner, the job also fails by timeouts for upstream main at bf353460f (run 44846463125, snp_seal_signer) and for the previous pin (run 45060720197, four tests).

NVX

  • python scripts\nvx.py verify passes.

  • python scripts\openvmm_pin.py check-roadmap passes (355 positions, 357 references).

  • python scripts\openvmm_pin.py check-branch --target origin/dev passes: two verified commits, standalone, no coordinated files.

  • python scripts\check_markdown_links.py and git diff --check origin/dev HEAD pass.

  • python scripts\local_gates.py --base origin/dev --run passes the seven gates that it selects at this head:

    • test-changes, markdown-links, and test-layout;
    • openvmm-vectors (4 tests) and openvmm-cpu-profiles (1 test);
    • openvmm-ci (the six required jobs of run 45128269465);
    • nvx-cli, run with NVX set to a release build of nvx at this head. It passed 2314 tests (89 skipped) and 84 tests (11 skipped).

    On the gate's first pass, under load from other builds on the workstation, one test with a 3-second deadline, test_measure_once_returns_when_a_descendant_keeps_the_output_open, timed out. It passes alone, and a second run of the nvx-cli gate passed.

  • test-microvm at this head, on each backend. On each host, nvx download installed release v0.1.0-dev.ebd6357166f1, this head's nearest released ancestor, and python3 scripts/nvx.py build-openvmm --backend BACKEND then built OpenVMM at the pin. Each build/openvmm.provenance.json names 899dcd63f with a clean source, and each binary's SHA-256 changed from the release's. NVX named a release build of nvx at this head.

    • KVM, on a test VM (Azure Linux 3, Intel Xeon Platinum 8573C, 8 vCPUs): python3 scripts/nvx.py test-microvm --backend kvm passes 58 of 58 scenario runs.
    • MSHV, on a test VM (Azure Linux 3 with the MSHV kernel, Intel Xeon Platinum 8573C, 8 vCPUs): --backend mshv passes 58 of 58.
    • WHP, on a test VM (Windows Server 2025, Intel Xeon Platinum 8370C, 8 vCPUs): --backend whp passes 60 of 60.
    • No run printed the NVX-CPU-PROFILE-FALLBACK warning.
    • On the local Windows 11 workstation, two full WHP runs each stopped at one SMP bring-up while other builds saturated the machine. One had 5 of 8 vCPUs online in console-exit, and the other 2 of 4 in smp. console-exit at 8 vCPUs then passed on its own. Apart from two KVM tests, the pin's OpenVMM source is the previous pin's, and the WHP test VM passes every scenario.

Backend, host OS, host type, and guest:

  • KVM and MSHV: Azure Linux 3 virtual machines.
  • WHP: a Windows Server 2025 virtual machine, and the local Windows 11 workstation, a physical machine (12th Gen Intel Core i9-12900H).
  • The guests are NVX's Alpine and Ubuntu guests of release v0.1.0-dev.ebd6357166f1 (v0.1.0-dev.42ba1e84ed19 on the workstation), and OpenVMM's own test guests for the VMM tests.

Left to CI:

  • Benchmarks and the debug-kernel scenarios.

NVX CI at this head, 90e6923c219: run 45199136913 passed on its second attempt, 34 jobs passed and 8 skipped, Required status check among them.

  • On the first attempt, nvx / windows-latest failed one test, sandbox_run::a_runs_warnings_start_lines_of_their_own_after_its_workloads_output, with error[timed-out]: NVXS I/O failed: timed out. The test runs nvx sandbox run --timeout 1 against a fake OpenVMM, and that 1-second deadline also bounds the readiness check and the exec. On the loaded runner, one of them missed it before the workload's output arrived.
  • Neither the gitlink nor the roadmap is an input of that test. At this head on Windows, the test passed 21 times in a row and the whole cli suite passed. No other CI run since November 12 failed a sandbox_run test on any attempt.
  • The rerun of the failed jobs passed. The run at the previous head, a2dd30e374b, which pinned the same OpenVMM revision and differs only in the roadmap's prose, had passed too: run 45146358333.

Checklist

  • Tests cover the new or fixed behavior, in the layout that
    python3 scripts/check_test_layout.py checks.
  • python3 scripts/check_test_changes.py --base origin/dev lists no change
    to an existing test, or a Changes to existing tests section below
    explains each one.
  • The documentation that the change affects is updated, including
    .github/copilot-instructions.md and the skills when a convention or
    workflow changes.
  • A change to the public API of nvx updates nvx/public-api/ with
    python3 scripts/public_api.py --update.
  • Snapshots, protocols, and on-disk formats stay compatible, or the
    description says how the change versions or migrates them.

The pin changes no NVX code, tests, or public API. The roadmap is the only documentation that it affects. Apart from the layout of two OpenVMM tests, the pin's tree is the previous pin's, so the snapshot manifest, contract versions, and vectors that nvx checks still match it.

OpenVMM pin

OpenVMM source

  • Pinned revision: 899dcd63f81e9fd40d1585cb50c60f22afed7a46, position 355. It is the head of feature/microvm/release/v8.0, a new branch.
  • Previous pin: 09524b79c, the head of feature/microvm/dev. It holds the 339 commits of feature/microvm/release/v7.2 (b51f9156c) and the 31 that OpenVMM pull requests merged after it.
  • Base: microsoft/openvmm main at bf353460f (2026-11-21), the v7.2 base.
  • Upstream main since: no commits; bf353460f is still upstream's head.
  • OpenVMM pull request: none. As with the earlier releases, the release branch was pushed directly, without force, and its push ran OpenVMM CI.
  • Signatures: all 355 commits carry good SSH signatures, and there are no merges.
  • Open into feature/microvm/dev: [DO NOT REVIEW] microvm: enable governed ARM64 cold boot on WHP openvmm#5045 and the draft [DO NOT REVIEW] cpu_profile: add NVIDIA N1X WHP profile openvmm#5096 are not part of this release. Once feature/microvm/dev moves, they need a rebase onto it. NVX has no other open pull request that moves the gitlink.

What changed in OpenVMM

No drops and no conflicts: openvmm_release.py drops finds no upstream commit since the base and no chain commit whose patch upstream carries.

15 folds. Each fixup went into the commits that build what it fixes, re-expressed for the code that those commits have. A v7.2 position counts in feature/microvm/dev at 09524b79c.

v7.2 position Change v8.0 positions
302 8d71cff3a - microVM: refuse a decoded network identity other than the derived one 078, 093, 193
316 335ebf312 - cpu_profile, openvmm_helpers: name sha2 as upstream's lock file does 069, 133
333 2dbfb495a - virtiofs: preflight a microVM object of another file type as a new node 081, 083
335 8d989e670 - microVM: adapt virtio-fs to upstream's Windows impersonation 081, 082, 085, 119, 120, 159, 198, 223
336 5dbe25966 - virt_support_x86emu: convert exception codes with u16::from 143
337 d22ea2c5a - vmservice: refuse virtio-fs mount options on a microVM 119, 198, 223
338 942eeeda1 - openvmm_entry: keep the microVM sandbox blocks' fixed queue shape 086, 087, 171, 223
339 b51f9156c - openvmm_entry: build with_big_stack only where it runs 254
340 32888344a - virtiofs: keep node names when renaming a name onto itself 048, 166
342 5c82edac4 - virtiofs: bound microVM directory snapshots in total when listing 083, 164
345 8986cc537 - virtiofs: stop failed microVM READDIRPLUS from leaking lookup references 083
347 a533d6a55 - virtiofs: refuse device nodes and whiteouts on a microVM share 081, 085, 164, 166
349 2a483a06f - virtiofs: keep node names when renaming one hard link onto another 048, 166
351 8bea555db - virtiofs: skip gone or hidden entries in microVM READDIRPLUS 083, 160
365 78ddb8044 - virtiofs: restart a restored microVM's handles at 1 on a reset 083, 350

Adapted commits.

  • Position 124 keeps the legacy tags 3 and 4 for the microVM mount fields, so its tests and guide use mount_options and windows_options at fields 5 and 6.
  • Position 163 lets the identity check accept an identity without IPv6 until position 193 gives every NIC one.
  • Position 186 drops the hypervisor argument of the command-line check from the identity test.
  • Position 239 keeps num_queues in the DiskCli that it moves.
  • Position 330 (v7.2 332) gives write_microvm_entry_plus its final lookup_child form.
  • Position 331 (v7.2 334) no longer adds the two test imports that the folds into positions 083 and 164 now add.
  • The patches of positions 103, 126, 156, 158, 165, and 182 differ only in context.

What changed in NVX

The gitlink and the roadmap, as What does this pull request change? describes. The comparisons of what nvx copies from OpenVMM pass at the pin: the openvmm-vectors and openvmm-cpu-profiles gates above. So the gitlink commit carries no coordinated change.

Equivalence

  • Patches: git range-diff bf353460f..09524b79c bf353460f..899dcd63f pairs the 355 kept commits in order:

    • 317 have identical patches;
    • 38 differ: the 24 commits that take folds, the six adapted commits, the six that differ only in context, and positions 301 and 304.

    It lists the 15 folded fixups on the old side alone, and nothing on the new side alone. No commit is reordered.

  • Tree: the pin's tree equals the previous pin's, apart from rustfmt's layout of two virt_kvm tests: 5 lines added and 8 removed.

Roadmap positions

  • v7.2 positions 001-301 keep their numbers.
  • From there on, each commit's position is its v7.2 position less the number of folded fixups before it: 303-315 are now 302-314, 317-332 are 315-330, 334 is 331, 341 is 332, 343-344 are 333-334, 346 is 335, 348 is 336, 350 is 337, 352-364 are 338-350, and 366-370 are 351-355.
  • The mapped tip is still position 126, now c6e62f286. The pin is position 355, 229 commits past it, and positions 127-355 are not yet assigned to roadmap PRs.

Landing order

  1. Done: OpenVMM CI run 45128269465 passed NVX's six required jobs on 899dcd63f, one of them on a second attempt; see OpenVMM CI above.

  2. Done: feature/microvm/release/v7.2 was fast-forwarded from b51f9156c to the previous pin, 09524b79c, without force. Every revision of the old line that NVX pinned then stays on a branch that git submodule update of an older NVX commit can fetch.

  3. Done: feature/microvm/dev moved from 09524b79c to the pin, 899dcd63f, with a lease on 09524b79c, because .gitmodules tracks that branch. Steps 2 and 3 ran as one command:

    python scripts/openvmm_release.py land --remote upstream --old-head 09524b79c7e857c6c4c7a287ecf56d290ae79a8b --new-head 899dcd63f81e9fd40d1585cb50c60f22afed7a46 --prev-release feature/microvm/release/v7.2 --push

    It checked first that feature/microvm/dev had not moved since the release was cut.

  4. Done: this PR merged through the merge queue at 17:58:37 UTC on November 23, 2026, as 6378cb5fb76, once its merge group's run 45226595943 passed. [DO NOT REVIEW] microvm: enable governed ARM64 cold boot on WHP openvmm#5045 and [DO NOT REVIEW] cpu_profile: add NVIDIA N1X WHP profile openvmm#5096 now need a rebase onto feature/microvm/dev.

NVX head: 90e6923c219b0af26e54028e4ac15c06753c52b1, on dev at afcfdc641f8.

Pin the openvmm submodule to 899dcd63f, the head of the new
feature/microvm/release/v8.0 branch of microsoft/openvmm. That branch
reorganizes the 370-commit microVM chain of feature/microvm/dev,
through the previous pin, 09524b79c, on its own base, microsoft/openvmm
main at bf353460f, which upstream has not passed. It drops no commit,
and nothing conflicts with upstream.

The reorganization folds the 15 fixups of the v7.2 line into the
commits that they fix, so the chain has 355 commits and each of them
builds: the PR13 and PR18 fixups that pull requests added after v7.0,
the v7.1 rebase's sha2 lock-file fixup, and the v7.2 rebase's fixups
for microsoft/openvmm#4876, microsoft/openvmm#5080,
microsoft/openvmm#5002, microsoft/openvmm#5040, and
microsoft/openvmm#5082. Each commit that takes a fold keeps its author
and date. Six later commits adapt to a folded change, and positions
301 and 304 take rustfmt's layout of a virt_kvm test, which cargo xtask
fmt does not reach. That layout is the only difference between the
pin's tree and the previous pin's.

The vectors, excerpts, contract versions, and CPU profiles that nvx
copies from OpenVMM match the pin.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 09:21
@ppenna Pedro Henrique Penna (ppenna) added the no-issue Needs no issue reference; applied by a maintainer label Nov 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The roadmap’s analysis still presents outdated v7.2 positions as current and directs contributors to perform completed folds, leaving submission guidance inconsistent with the v8.0 mapping.

1 open issue
What changed in this PR

This PR pins NVX to OpenVMM microVM v8.0, folding 15 fixups into their original commits on the unchanged upstream base. NVX code remains unchanged; the reported OpenVMM tree differences are limited to formatting two tests.

Changes:

  • Advances the OpenVMM pin to the reorganized 355-commit chain.
  • Updates roadmap hashes, positions, and PR counts, and documents the folds and validation.
File Description
doc/​openvmm-upstream-roadmap.md Maps the v8.0 chain and records folded fixups, historical positions, and validation results.

Review effort: Balanced

Comment thread doc/openvmm-upstream-roadmap.md Resolved
The feature/microvm/release/v8.0 reorganization, which the previous
commit pins, kept the 370-commit microVM chain on bf353460f and folded
the 15 fixups at v7.2 positions 302, 316, 333, 335-340, 342, 345, 347,
349, 351, and 365 into the commits that they fix, so each later
commit's position is its v7.2 position less the number of those fixups
before it. Remap the scope, upstream status, graph, branch DAG, the
commits after the mapped tip and their analyses, PR summary, and commit
mapping onto the reorganized commits, naming each commit's v7.2
position, and drop the folded fixups from them: their analyses go, and
the analyses that cite them cite the commits that took their changes.

Record the reorganization: where each fixup went, the commits that
adapt to a folded change, the rustfmt layout that positions 301 and
304 take, the range diff against the previous pin, and the per-commit
validation on Linux and Windows.

As of 2026-11-23, none of the open upstream pull requests has merged,
and none that was closed has reopened.

The pin, 899dcd63f, is position 355, 229 commits past the mapped tip.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ppenna
Pedro Henrique Penna (ppenna) force-pushed the agents/nvx-rebase-openvmm-chain-reorganize-ready branch from a2dd30e to 90e6923 Compare November 23, 2026 14:53
Copilot AI balanced review requested due to automatic review settings November 23, 2026 14:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum diff size. Try reducing the number of changed files and lines, and requesting a review from Copilot again.

@ppenna
Pedro Henrique Penna (ppenna) added this pull request to the merge queue Nov 23, 2026
Merged via the queue into dev with commit 6378cb5 Nov 23, 2026
94 of 97 checks passed
@ppenna
Pedro Henrique Penna (ppenna) deleted the agents/nvx-rebase-openvmm-chain-reorganize-ready branch November 23, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-issue Needs no issue reference; applied by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants