Skip to content

Commit 4d11fe4

Browse files
ppennaCopilot
andcommitted
doc: map bounded aggregate root directory reads in the OpenVMM roadmap
Map position 341, the commit of microsoft/openvmm#5207, which NVX now pins at ed2d7e3a1, 215 commits past the mapped tip: - 341, virtiofs: bound the buffer of an aggregate root's directory read. VirtioFs::read_synthetic_root_dir_with fails a read of an aggregate's synthetic root that asks for more than MAX_GUEST_BUFFER_SIZE, 1 MiB, with E2BIG before it reserves its reply buffer, and reserves the buffer fallibly, failing with ENOMEM, as the reads of every other directory do. It reserved whatever size the guest asked for, so a read with a size of u32::MAX made the device reserve 4 GiB for one request. Position 341 is not yet assigned to a PR. It changes upstream's read_synthetic_root_dir_with, which no earlier chain commit changes, and uses the MAX_GUEST_BUFFER_SIZE with which PR06's position 010 bounds the other reads; it changes nothing that a mapped PR adds and fixes no defect of position 010, so it is not a PR06 fixup. Upstream main, bf353460f, has the defect, but replaying the commit there conflicts in the microVM's aggregate_fs_tests.rs, which upstream main lacks, and its change to aggregate.rs needs position 010's MAX_GUEST_BUFFER_SIZE, so it cannot go upstream on its own as it is; it could go upstream with position 010, in microsoft/openvmm#4597. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 71c5630 commit 4d11fe4

1 file changed

Lines changed: 35 additions & 11 deletions

File tree

‎doc/openvmm-upstream-roadmap.md‎

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@
99
- Mapped fork tip: `1e492803287f04b40bb7c17e8648c4b96af52ecc`, position 126. The graph, PR
1010
summary, and commit mapping below cover positions 001-126, the PR18 fixups at positions 302
1111
and 333, and the PR13 fixup at position 340.
12-
- NVX's pinned OpenVMM revision: `32888344a110ca39d261158618eca3d5478da004`, position 340, the head
13-
of microsoft/openvmm#5206, whose commit follows position 339, `b51f9156c`, the head of
12+
- NVX's pinned OpenVMM revision: `ed2d7e3a15c9519fde09046ba6643f773c8285df`, position 341, the head
13+
of microsoft/openvmm#5207, whose commit follows position 340, `32888344a`, the head of
14+
microsoft/openvmm#5206, whose commit follows position 339, `b51f9156c`, the head of
1415
`feature/microvm/dev` and of the `feature/microvm/release/v7.2` branch of microsoft/openvmm. The
1516
v7.2 rebase moved the 335 commits of `feature/microvm/dev` at `30fe00786`, the pin before it,
1617
onto `bf353460f`. It dropped position 317, upstream's microsoft/openvmm#5160, which upstream had
1718
landed, so each later commit's position is one less than before, and it added five fixups at its
1819
tip, positions 335-339. Of the 334 replayed commits, 47 conflicted with upstream and 13 replayed
1920
with new context; see [Conflicts of the v7.2 rebase](#conflicts-of-the-v72-rebase). The pin is
20-
214 commits past the mapped tip on the same first-parent chain. Positions 127-301, 303-332, and
21-
334 are not yet assigned to PRs, positions 302 and 333 are PR18 fixups, position 340 is a PR13
22-
fixup, and positions 316 and 335-339 are rebase fixups; see
21+
215 commits past the mapped tip on the same first-parent chain. Positions 127-301, 303-332, 334,
22+
and 341 are not yet assigned to PRs, positions 302 and 333 are PR18 fixups, position 340 is a
23+
PR13 fixup, and positions 316 and 335-339 are rebase fixups; see
2324
[Commits after the mapped tip](#commits-after-the-mapped-tip).
2425
- Upstream main: `bf353460ff70e4a65627bb7003bed2cad1ce121f` (2026-11-21), the fork base; see
2526
[Upstream main past the fork base](#upstream-main-past-the-fork-base).
@@ -1615,7 +1616,8 @@ bf353460f
16151616
-> virtio-fs lookup counts saturated rather than wrapped to zero [334]
16161617
-> v7.2 rebase fixups [335-339]
16171618
-> PR13 fixup [340]
1618-
-> 32888344a (NVX pin)
1619+
-> virtio-fs aggregate root reads bounded at 1 MiB [341]
1620+
-> ed2d7e3a1 (NVX pin)
16191621
```
16201622

16211623
For upstream review, PR01-PR03, PR05, PR06, and PR14 can be rebased independently onto current
@@ -1650,7 +1652,7 @@ position 160 adds, and its test into position 166, which adds the exchange tests
16501652

16511653
## Commits after the mapped tip
16521654

1653-
The NVX pin extends the chain past position 126 without merges. Of its 214 later commits, positions
1655+
The NVX pin extends the chain past position 126 without merges. Of its 215 later commits, positions
16541656
302 and 333 are PR18 fixups, position 340 is a PR13 fixup, position 316 is the fixup of the v7.1
16551657
rebase, positions 335-339 are the fixups of the v7.2 rebase, and the others are not yet classified
16561658
or assigned to PRs.
@@ -1661,15 +1663,15 @@ of the v4.0 reorganization, positions 201-206 followed it, positions 207-213 fol
16611663
reorganization, positions 214 and 215 followed the v5.1 rebase, positions 216-253 followed the
16621664
v6.0 reorganization, positions 254-296 followed the v6.1 rebase, positions 297-315 followed the
16631665
v7.0 reorganization, position 316 is the v7.1 rebase's fixup, positions 317-334 followed the
1664-
v7.1 rebase, positions 335-339 are the v7.2 rebase's fixups, and position 340 followed the v7.2
1665-
rebase, so they combine none, apart from
1666+
v7.1 rebase, positions 335-339 are the v7.2 rebase's fixups, and positions 340 and 341 followed
1667+
the v7.2 rebase, so they combine none, apart from
16661668
position 215, which combines v5.1 positions 222 and 223, and the commits that the v7.0
16671669
reorganization folded into them. Each commit through position 316 has the position that it had in
16681670
v7.0 and v7.1, and each of positions 317-334 is its v7.1 position less one, since the v7.2 rebase
16691671
dropped v7.1 position 317, upstream's microsoft/openvmm#5160, which v7.1 had backported. Each
16701672
commit's v6.1 position is its v6.0 position less seven, the number of commits that the v6.1 rebase
16711673
dropped before it, and its v6.0 position is its v5.1 position through 147 and one less from v5.1
1672-
position 149 on, and positions 297-340 have no earlier position; see
1674+
position 149 on, and positions 297-341 have no earlier position; see
16731675
[Conflicts of the v7.2 rebase](#conflicts-of-the-v72-rebase),
16741676
[The v7.0 reorganization](#the-v70-reorganization),
16751677
[Conflicts of the v6.1 rebase](#conflicts-of-the-v61-rebase), and
@@ -1896,6 +1898,7 @@ whose first 220 commits are those of `feature/microvm/release/v6.0`, and a v4.0
18961898
| 338 | `942eeeda1` | - | - | - | - | - | - | openvmm_entry: keep the microVM sandbox blocks' fixed queue shape (v7.2 rebase fixup for microsoft/openvmm#5040); fold into 086, 087, 171, and 223 |
18971899
| 339 | `b51f9156c` | - | - | - | - | - | - | openvmm_entry: build with_big_stack only where it runs (v7.2 rebase fixup for microsoft/openvmm#5082); fold into 254 |
18981900
| 340 | `32888344a` | - | - | - | - | - | - | virtiofs: keep node names when renaming a name onto itself (microsoft/openvmm#5206); fold into 048, its test into 166 |
1901+
| 341 | `ed2d7e3a1` | - | - | - | - | - | - | virtiofs: bound the buffer of an aggregate root's directory read (microsoft/openvmm#5207) |
18991902

19001903
The remarks that say whether commits apply to upstream main record what was found on upstream main
19011904
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -1906,7 +1909,7 @@ and `c0694c4da`, upstream main on 2026-11-16, for positions 297-306, `c4419be15`
19061909
main on 2026-11-19, for positions 321-324, `78af54a51`, upstream main on 2026-11-20, for position
19071910
325, `d83f87209`, upstream main later that day, for position 326, `265f0a73f`, upstream main
19081911
later still, for positions 327 and 328, and `bf353460f`, upstream main on 2026-11-21 and the v7.2
1909-
fork base, for positions 329-334 and 340.
1912+
fork base, for positions 329-334, 340, and 341.
19101913
They name the positions that the commits have now, but neither the v7.2 rebase on `bf353460f`, the
19111914
v7.1 rebase on `9a875b563`, nor the v7.0 reorganization on `e6b458cc0` checked them again, nor did
19121915
the v6.1 rebase check the earlier ones on `7d90c4104`.
@@ -4309,6 +4312,27 @@ since it lacks the names that position 048 adds. Replaying the commit there conf
43094312
next to the names and checks of positions 048 and 160, and in the microVM's `exchange_tests.rs`,
43104313
which upstream main lacks, so it follows PR13 upstream.
43114314

4315+
Position 341 has `VirtioFs::read_synthetic_root_dir_with`, which answers `FUSE_READDIR` and
4316+
`FUSE_READDIRPLUS` on an aggregate's synthetic root, fail a read that asks for more than
4317+
`MAX_GUEST_BUFFER_SIZE`, 1 MiB, with `E2BIG` before it reserves its reply buffer, and reserve the
4318+
buffer with `try_reserve_exact`, failing with `ENOMEM`, as the reads of every other directory do
4319+
(microsoft/nvx#1598). It reserved whatever size the guest asked for with an infallible
4320+
`Vec::with_capacity`, so a read of the root with a size of `u32::MAX` made the device reserve 4 GiB
4321+
for one request, which aborts the VMM where the host cannot provide it. A read of 1 MiB, the most
4322+
that the session's 256 pages per request let a Linux guest ask for, still lists the whole root. It
4323+
changes upstream's code, which no earlier chain commit changes, though PR18's position 081 and
4324+
positions 164, 165, and 332 change `aggregate.rs`, and it uses the `MAX_GUEST_BUFFER_SIZE` with
4325+
which PR06's position 010 bounds `guest_buffer` and the reads of the other directories. It adds a
4326+
test to the microVM's aggregate tests, which position 164 adds and positions 165 and 194 also
4327+
change. It changes nothing that a mapped PR adds, and it fixes no defect of position 010, whose
4328+
bound never covered the synthetic root, so it is not a PR06 fixup. NVX's Linux guest asks for at
4329+
most 1 MiB, so the microVM behaves as it did. Upstream main has the defect, in the same
4330+
`read_synthetic_root_dir_with`, which `a5f055dd7` (microsoft/openvmm#3821) adds, and in the reads
4331+
that position 010 bounds. Replaying the commit on upstream main conflicts only in the microVM's
4332+
`aggregate_fs_tests.rs`, which upstream main lacks; its change to `aggregate.rs` applies there, but
4333+
uses the `MAX_GUEST_BUFFER_SIZE` of position 010, which upstream main lacks, so it cannot go
4334+
upstream on its own as it is, and could go upstream with position 010, in microsoft/openvmm#4597.
4335+
43124336
## PR summary
43134337

43144338
Each count is of v7.2 commits, which include the fixups that the v3.0, v4.0, v5.0, v6.0, and v7.0

0 commit comments

Comments
 (0)