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 4d11fe4
Browse filesBrowse the repository at this point in the historyBrowse files
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>
[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
1896
1898
| 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 |
1897
1899
| 339 |`b51f9156c`| - | - | - | - | - | - | openvmm_entry: build with_big_stack only where it runs (v7.2 rebase fixup for microsoft/openvmm#5082); fold into 254 |
1898
1900
| 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) |
1899
1902
1900
1903
The remarks that say whether commits apply to upstream main record what was found on upstream main
1901
1904
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`
1906
1909
main on 2026-11-19, for positions 321-324, `78af54a51`, upstream main on 2026-11-20, for position
1907
1910
325, `d83f87209`, upstream main later that day, for position 326, `265f0a73f`, upstream main
1908
1911
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-334and 340.
1912
+
fork base, for positions 329-334, 340, and 341.
1910
1913
They name the positions that the commits have now, but neither the v7.2 rebase on `bf353460f`, the
1911
1914
v7.1 rebase on `9a875b563`, nor the v7.0 reorganization on `e6b458cc0` checked them again, nor did
1912
1915
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
4309
4312
next to the names and checks of positions 048 and 160, and in the microVM's `exchange_tests.rs`,
4310
4313
which upstream main lacks, so it follows PR13 upstream.
4311
4314
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
+
4312
4336
## PR summary
4313
4337
4314
4338
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