You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2c0d475
Browse filesBrowse the repository at this point in the historyBrowse files
doc: map the restore gate deadline that ends at the acknowledgement in the OpenVMM roadmap
Map positions 374 and 375, the commits of microsoft/openvmm#5265, which
NVX now pins at d44a113be, 249 commits past the mapped tip, stacked on
microsoft/openvmm#5264, #5263, and #5262, and name aa145aff9 as the head
of feature/microvm/dev, where microsoft/openvmm#5260 and
microsoft/openvmm#5261 have landed positions 369 and 370:
- 374, petri: let a microVM test arm the post-restore input gate.
PetriVmConfigOpenVmm::with_microvm_restore_gate hands the VM worker
the gate's timeout, which petri left unset, and the worker gates the
first start of a cold boot as it gates a restore's.
- 375, openvmm_core: stop a gated restore's deadline at its
acknowledgement. SnapshotRestore::restore_acknowledged clears the
gate's deadline when the acknowledgement comes in time and keeps
host input gated, so the snapshot boundary of the acknowledgement
holds the VM until the snapshot controller releases it, however long
after the deadline; an acknowledgement after the deadline stops the
VM as the deadline does.
Position 374 is not yet assigned to a PR: it replaces the empty gate
timeout in the line of Worker::launch that PR20's position 090 adds,
but fixes no defect of it. Position 375 fixes a defect of position
090, which arms the deadline at the VM's start and clears it only at
the release of the acknowledgement's boundary, so it is a PR20 fixup:
fold it into position 090, its changes of restore_acknowledged and
its unit tests into position 134, which adds that method and
next_event, and its VMM test into position 374. Positions 369-373
change none of their files. Replaying either commit on upstream main,
efe0b08df, conflicts in all of its files, which upstream main lacks or
which change what the chain adds there, so position 374 follows PR20
and position 234 upstream, and position 375 follows PR20.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@@ -2083,6 +2089,8 @@ whose first 269 commits are those of `feature/microvm/release/v6.1`, a v6.0 posi
2083
2089
| 371 | `2bb009b01` | - | - | - | - | - | - | - | virtiofs: read microVM directory listings to the end on Windows (microsoft/openvmm#5262) |
2084
2090
| 372 | `6ace73360` | - | - | - | - | - | - | - | vmm_core: keep a debugger break into a paused VM out of its saved state (microsoft/openvmm#5263) |
2085
2091
| 373 | `82ff6d2f7` | - | - | - | - | - | - | - | virt_kvm: clear a vCPU's paravirtual kick when its activity is set (microsoft/openvmm#5264) |
2092
+
| 374 | `4760f77f0` | - | - | - | - | - | - | - | petri: let a microVM test arm the post-restore input gate (microsoft/openvmm#5265) |
2093
+
| 375 | `d44a113be` | - | - | - | - | - | - | - | openvmm_core: stop a gated restore's deadline at its acknowledgement (microsoft/openvmm#5265); fold into 090, its `restore_acknowledged` changes and unit tests into 134, its VMM test into 374 |
2086
2094
2087
2095
The remarks that say whether commits apply to upstream main record what was found on upstream main
2088
2096
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -2095,7 +2103,7 @@ and `c0694c4da`, upstream main on 2026-11-16, for positions 297-305, `c4419be15`
2095
2103
for positions 325 and 326, `bf353460f`, upstream main on 2026-11-21 and the fork base of v7.2 and
2096
2104
v8.0, for positions 327-355, `b50d0c979`, upstream main later on 2026-11-23, for position 356,
2097
2105
`5d6ab1cfa`, upstream main later that day, for positions 357-368, and `efe0b08df`, upstream main
2098
-
later still, for positions 369-373. They name the positions that the commits have now, but neither
2106
+
later still, for positions 369-375. They name the positions that the commits have now, but neither
2099
2107
the v8.0 reorganization and the v7.2 rebase, both on `bf353460f`, the v7.1 rebase on `9a875b563`,
2100
2108
nor the v7.0 reorganization on `e6b458cc0` checked them again, nor did the v6.1 rebase check the
2101
2109
earlier ones on `7d90c4104`.
@@ -5413,6 +5421,67 @@ the module list of `virt_backend_tests`, which lacks the `nmi` and `registers` o
5413
5421
260, and in the Guide's VMM-test page, which lacks the sentence and the paragraph of position 301,
5414
5422
so it cannot go upstream on its own.
5415
5423
5424
+
Position 374 lets a VMM test arm the post-restore input gate of PR20's position 090, which petri
5425
+
launched the VM worker without, so that no VMM test could check how the worker handles the gate
5426
+
(microsoft/nvx#1739). `PetriVmConfigOpenVmm::with_microvm_restore_gate` keeps the gate's timeout
5427
+
with the microVM's runtime resources until the worker launches, and `Worker::launch` hands it to
5428
+
the worker, which gates the first start of a cold boot as it gates a restore's, so a test arms the
5429
+
gate without a snapshot to restore. The worker holds the guest's acknowledgement at a snapshot
5430
+
boundary, so such a test is also the VM's snapshot controller, as position 234 makes it. The commit
5431
+
adds the option and its resource after position 234's in `petri/src/vm/openvmm/microvm.rs`, which
5432
+
PR15's position 060, PR16's position 062, PR17's position 071, PR20's position 089, PR24's position
5433
+
114, and positions 132, 142, 155, 157, 202, 218, and 234 also change, and it passes the timeout
5434
+
beside position 234's channels in `start.rs`, which PR13's position 046 and position 234 also
5435
+
change, and in `worker.rs`, which PR09's position 012, PR12's positions 034 and 035, PR15's position
5436
+
060, PR17's positions 067, 070, and 073, PR20's positions 090 and 092, and positions 134, 142, 234,
5437
+
and 236 also change, where it replaces the empty timeout in the line of `Worker::launch` that
5438
+
position 090 adds. Its VMM test follows position 312's in the microVM lifecycle tests, which PR15's
5439
+
position 060, PR17's position 075, and positions 202, 234, 235, and 312 also change, and uses the
5440
+
helpers of positions 060 and 234. It follows position 373, whose commit and those of positions
5441
+
369-372 change none of its files. It fixes no defect of position 090, whose petri launch arms no
5442
+
gate, so it is not a PR20 fixup. Replaying the commit on upstream main conflicts in all four of its
5443
+
files: upstream main lacks petri's microVM module and the microVM VMM tests, which position 060
5444
+
adds, the VM worker's gate timeout, which position 090 adds, and the snapshot boundary channels
5445
+
that position 234 passes in `start.rs` and `worker.rs`, so it follows PR20 and position 234
5446
+
upstream.
5447
+
5448
+
Position 375 stops the deadline of the post-restore input gate when the guest acknowledges the
5449
+
restore, rather than when the snapshot controller releases the snapshot boundary that holds the
5450
+
acknowledgement (microsoft/nvx#1739). PR20's position 090 arms the deadline when the VM worker
5451
+
starts a gated VM and clears it only in `release_snapshot_boundary`, although its message bounds
5452
+
only the acknowledgement, so when a controller released the boundary after the deadline, the
5453
+
worker had already stopped the VM and torn it down, although the guest had acknowledged in time.
5454
+
`SnapshotRestore::restore_acknowledged`, which position 134 adds and which
5455
+
`establish_snapshot_boundary` calls for a boundary under the armed gate, now clears the deadline
5456
+
and keeps host input gated, so the boundary holds the acknowledged VM until the controller releases
5457
+
it or rolls it back; a boundary that fails to establish still tears the VM down, and a guest that
5458
+
does not acknowledge in time is still stopped. An acknowledgement that the run loop handles only
5459
+
after the deadline is too late: `restore_acknowledged` then keeps the deadline and reports it, and
5460
+
`establish_snapshot_boundary` stops the VM as the deadline does, so the order in which the run loop
5461
+
handles the two cannot stop an expired deadline. In `restore.rs`, which PR12's positions 034 and
5462
+
035, PR17's position 073, PR20's positions 090 and 092, and positions 134, 139, 142, 155, 236, and
5463
+
246 also change, it changes the documentation of the `gate_deadline` that position 090 adds and
5464
+
`restore_acknowledged`, which position 134 adds. In the VM worker's microVM module, which PR15's
5465
+
positions 051, 057, and 058, PR16's positions 062 and 064, PR17's positions 067, 068, 070, and 072,
5466
+
PR18's positions 078 and 082, PR19's positions 086 and 087, PR20's positions 090 and 093, PR23's
5467
+
position 110, and 17 positions that no PR has yet also change, it changes position 134's call and
5468
+
its comment. In the snapshot guide, which PR11's position 030, PR12's positions 033-035, PR13's
5469
+
positions 041 and 046, PR17's positions 071 and 074, PR18's positions 077, 079, 084, and 085,
5470
+
PR19's positions 087 and 088, PR20's positions 089, 090, 092, and 094, PR23's positions 108 and 113,
5471
+
PR24's position 118, and 70 positions that no PR has yet also change, it extends the sentence of
5472
+
position 090 that bounds the acknowledgement, in the line that PR23's position 108 extends. Its unit
5473
+
tests follow position 134's test of the gate's expiry and call position 134's `next_event`, and its
5474
+
VMM test follows position 374's and uses position 374's option and the helpers of PR15's position
5475
+
060 and position 234. Positions 369-373 change none of its files. It fixes a defect of position 090
5476
+
and needs nothing that a later position adds but, for its changes of the call and its tests, the
5477
+
`restore_acknowledged` and `next_event` of position 134 and the option of position 374, so it is a
5478
+
PR20 fixup: fold it into position 090, its changes of `restore_acknowledged` and of its call, and
5479
+
its unit tests, into position 134, and its VMM test into position 374. Upstream main has no
5480
+
post-restore input gate. Replaying the commit there conflicts in all four of its files: upstream
5481
+
main lacks the VM worker's restore module, which PR12's position 034 adds, its microVM module, which
5482
+
PR15's position 051 adds, the microVM VMM tests of position 060, and the guide's paragraph on the
5483
+
gate, which position 090 adds, so it follows PR20 upstream.
5484
+
5416
5485
## PR summary
5417
5486
5418
5487
Each count is of v8.0 commits, which include the fixups that the v3.0, v4.0, v5.0, v6.0, v7.0, and
@@ -5444,7 +5513,7 @@ v8.0 reorganizations folded into them; see [The v8.0 reorganization](#the-v80-re
5444
5513
| PR17 | P | microVM snapshot capture and authoritative restore | 065-075 | `548bf2ec2..464aa9d27` | 11 | PR16 |
5445
5514
| PR18 | P | microVM host attachments and device persistence | 076-085 | `d3d2a088f..77eebd10f` | 10 | PR17 |
- 095 `e960c809b` - openvmm_entry: pre-expand the Linux descriptor table at startup (v6.1 093, v6.0 100, v4.0 104, v3.0 113, v2.4 113)
5880
+
- 375 `d44a113be` - openvmm_core: stop a gated restore's deadline at its acknowledgement (microsoft/openvmm#5265; **fold into 090**, its `restore_acknowledged` changes and unit tests into 134, its VMM test into 374)
0 commit comments