Skip to content

Commit d109b59

Browse files
ppennaCopilot
andcommitted
doc: map the ENOSYS reply to FUSE_COPY_FILE_RANGE_64 in the OpenVMM roadmap
Map position 365, the commit of microsoft/openvmm#5255, which NVX now pins at be75ab532, 239 commits past the mapped tip: - 365, fuse: fail FUSE_COPY_FILE_RANGE_64 with ENOSYS, not EINVAL. The session decodes opcode 53 as it decodes FUSE_COPY_FILE_RANGE and fails it with ENOSYS in Session::dispatch_helper, without calling the file system. Since 6.18, Linux sends each copy as that opcode first, and only ENOSYS makes it fall back to FUSE_COPY_FILE_RANGE and then to its own copy; the catch-all of upstream's FuseOperation::read failed it with EINVAL, so the copy failed in NVX's 6.18.38 guests. Position 365 is not yet assigned to a PR. It declares the opcode in protocol.rs, which no earlier position changes, adds it to the operation table of request.rs, whose request checks positions 318 and 319 change, adds its arm between upstream's in dispatch_helper, and documents it on Fuse::copy_file_range in lib.rs, after position 327's paragraph; its tests, registered before position 323's error_reply, use the session's test harness of positions 321, 322, and 325 and position 327's reply to FUSE_COPY_FILE_RANGE. It is not a fixup: no earlier position handles the opcode, and the catch-all is upstream's. Upstream main, 5d6ab1cfa, lacks the opcode too and fails it the same way, but replaying the commit there conflicts in lib.rs and session.rs, which lack position 327's paragraph and the session's test modules, so it cannot go upstream on its own. The Scope now names 09966aa63, position 361, as the head of feature/microvm/dev, since microsoft/openvmm#5251, microsoft/openvmm#5252, and microsoft/openvmm#5253 landed positions 358-361 there too. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5628059 commit d109b59

1 file changed

Lines changed: 41 additions & 16 deletions

File tree

‎doc/openvmm-upstream-roadmap.md‎

Lines changed: 41 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@
99
[Upstream status](#upstream-status).
1010
- Mapped fork tip: `c6e62f286b2879ca87da42e46de2fee887231d08`, position 126. The graph, PR
1111
summary, and commit mapping below cover positions 001-126.
12-
- NVX's pinned OpenVMM revision: `5e0e72d72d60bce5e2c5735a08ffebd57ae24216`, position 364, the head
13-
of microsoft/openvmm#5254, whose commits follow position 361, `09966aa63`, the head of
14-
microsoft/openvmm#5253, whose commit follows position 360, `3f7112dea`, the head of
15-
microsoft/openvmm#5252, whose commits follow position 358, `7e94a090a`, the head of
16-
microsoft/openvmm#5251, whose commit follows position 357, `e8324ea31`, the head of
17-
`feature/microvm/dev` since microsoft/openvmm#5248 and microsoft/openvmm#5249 landed positions
18-
356, `b73db6676`, and 357 on position 355, `899dcd63f`, the head of the
19-
`feature/microvm/release/v8.0` branch of microsoft/openvmm. The
12+
- NVX's pinned OpenVMM revision: `be75ab532b77ce90fa46371f2ced3cb547fd00c7`, position 365, the head
13+
of microsoft/openvmm#5255, whose commit follows position 364, `5e0e72d72`, the head of
14+
microsoft/openvmm#5254, whose commits follow position 361, `09966aa63`, the head of
15+
`feature/microvm/dev` since microsoft/openvmm#5248, microsoft/openvmm#5249,
16+
microsoft/openvmm#5251, microsoft/openvmm#5252, and microsoft/openvmm#5253 landed positions
17+
356-361 on position 355, `899dcd63f`, the head of the `feature/microvm/release/v8.0` branch of
18+
microsoft/openvmm. The
2019
v8.0 reorganization replayed the 370 commits of `feature/microvm/dev` at `09524b79c`, the pin
2120
before it, on their own fork base and folded the 15 fixups that the roadmap assigned to earlier
2221
commits, v7.2 positions 302, 316, 333, 335-340, 342, 345, 347, 349, 351, and 365, into the
2322
commits that they fix, so each later commit's position is its v7.2 position less the number of
2423
those fixups before it; see [The v8.0 reorganization](#the-v80-reorganization). The tree of
2524
`899dcd63f` differs from the tree of `09524b79c` only in rustfmt's layout of two `virt_kvm`
26-
tests. The pin is 238 commits past the mapped tip on the same first-parent chain, and positions
27-
127-364 are not yet assigned to PRs; see
25+
tests. The pin is 239 commits past the mapped tip on the same first-parent chain, and positions
26+
127-365 are not yet assigned to PRs; see
2827
[Commits after the mapped tip](#commits-after-the-mapped-tip).
2928
- Upstream main: `bf353460ff70e4a65627bb7003bed2cad1ce121f` (2026-11-21), the fork base; see
3029
[Upstream main past the fork base](#upstream-main-past-the-fork-base).
@@ -1768,7 +1767,8 @@ bf353460f
17681767
-> offsets found in test and fuzzing chipset regions that end at the top [359-360]
17691768
-> virtio-fs nodes of LINK replies kept until the guest forgets them [361]
17701769
-> microVM saves refused while the guest holds a replaced virtio-fs object [362-364]
1771-
-> 5e0e72d72 (NVX pin)
1770+
-> FUSE_COPY_FILE_RANGE_64 requests failed with ENOSYS rather than EINVAL [365]
1771+
-> be75ab532 (NVX pin)
17721772
```
17731773

17741774
For upstream review, PR01-PR03, PR05, PR06, and PR14 can be rebased independently onto current
@@ -1791,7 +1791,7 @@ reorganization folded the fixups of PR13 and PR18 and of the v7.1 and v7.2 rebas
17911791

17921792
## Commits after the mapped tip
17931793

1794-
The NVX pin extends the chain past position 126 without merges, and its 238 later commits are not
1794+
The NVX pin extends the chain past position 126 without merges, and its 239 later commits are not
17951795
yet classified or assigned to PRs.
17961796
Each of positions 127-181 combines the v2.4 commits that the table lists, as v3.0 positions 145-160
17971797
and 162-200 did, which developed one concept; "(part)" marks a v2.4 fixup that split across
@@ -1800,17 +1800,17 @@ of the v4.0 reorganization, positions 201-206 followed it, positions 207-213 fol
18001800
reorganization, positions 214 and 215 followed the v5.1 rebase, positions 216-253 followed the
18011801
v6.0 reorganization, positions 254-296 followed the v6.1 rebase, positions 297-314 followed the
18021802
v7.0 reorganization, positions 315-331 followed the v7.1 rebase, positions 332-355 followed the
1803-
v7.2 rebase, and positions 356-364 followed the v8.0 reorganization, so they combine none, apart
1803+
v7.2 rebase, and positions 356-365 followed the v8.0 reorganization, so they combine none, apart
18041804
from position 215, which combines v5.1 positions 222 and 223, and the commits that the v7.0 and
18051805
v8.0 reorganizations folded into them. The table gives each commit's v7.2 position, which through
18061806
position 301 is its own, since the v8.0 reorganization folded v7.2 positions 302, 316, 333,
1807-
335-340, 342, 345, 347, 349, 351, and 365, and which positions 356-364 lack.
1807+
335-340, 342, 345, 347, 349, 351, and 365, and which positions 356-365 lack.
18081808
Each commit through v7.2 position 316 has the position that it had in v7.0 and v7.1, and each of
18091809
v7.2 positions 317-334 is its v7.1 position less one, since the v7.2 rebase dropped v7.1 position
18101810
317, upstream's microsoft/openvmm#5160, which v7.1 had backported. Each commit's v6.1 position is
18111811
its v6.0 position less seven, the number of commits that the v6.1 rebase dropped before it, and
18121812
its v6.0 position is its v5.1 position through 147 and one less from v5.1 position 149 on, and
1813-
positions 297-364 have no position before v7.0; see
1813+
positions 297-365 have no position before v7.0; see
18141814
[The v8.0 reorganization](#the-v80-reorganization),
18151815
[Conflicts of the v7.2 rebase](#conflicts-of-the-v72-rebase),
18161816
[The v7.0 reorganization](#the-v70-reorganization),
@@ -2063,6 +2063,7 @@ whose first 269 commits are those of `feature/microvm/release/v6.1`, a v6.0 posi
20632063
| 362 | `b5914cf2d` | - | - | - | - | - | - | - | virtiofs: fail a microVM save while the guest holds a replaced object (microsoft/openvmm#5254) |
20642064
| 363 | `b2ac1073d` | - | - | - | - | - | - | - | virtiofs: fail a microVM save of nodes or handles that a restore rejects (microsoft/openvmm#5254) |
20652065
| 364 | `5e0e72d72` | - | - | - | - | - | - | - | virtiofs: say which nodes a microVM save keeps apart (microsoft/openvmm#5254) |
2066+
| 365 | `be75ab532` | - | - | - | - | - | - | - | fuse: fail FUSE_COPY_FILE_RANGE_64 with ENOSYS, not EINVAL (microsoft/openvmm#5255) |
20662067

20672068
The remarks that say whether commits apply to upstream main record what was found on upstream main
20682069
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -2074,7 +2075,7 @@ and `c0694c4da`, upstream main on 2026-11-16, for positions 297-305, `c4419be15`
20742075
`d83f87209`, upstream main later that day, for position 324, `265f0a73f`, upstream main later still,
20752076
for positions 325 and 326, `bf353460f`, upstream main on 2026-11-21 and the fork base of v7.2 and
20762077
v8.0, for positions 327-355, `b50d0c979`, upstream main later on 2026-11-23, for position 356, and
2077-
`5d6ab1cfa`, upstream main later that day, for positions 357-364. They name the positions that the
2078+
`5d6ab1cfa`, upstream main later that day, for positions 357-365. They name the positions that the
20782079
commits have now, but neither the v8.0 reorganization and the v7.2 rebase, both on `bf353460f`,
20792080
the v7.1 rebase on `9a875b563`, nor the v7.0 reorganization on `e6b458cc0` checked them again, nor
20802081
did the v6.1 rebase check the earlier ones on `7d90c4104`.
@@ -5179,6 +5180,30 @@ position 330. Upstream main lacks the defect, since it lacks the microVM's snaps
51795180
commits there conflicts in the microVM's `fs.rs`, `fs_tests.rs`, `inode.rs`, and `state.rs` and in
51805181
the Guide's virtio-fs page, which upstream main lacks, so they cannot go upstream on their own.
51815182

5183+
Position 365 has the FUSE session fail `FUSE_COPY_FILE_RANGE_64` with `ENOSYS` rather than `EINVAL`
5184+
(microsoft/nvx#1899). Since 6.18, Linux sends each `copy_file_range` first as
5185+
`FUSE_COPY_FILE_RANGE_64`, opcode 53 of protocol 7.45, whatever minor version the session
5186+
negotiated, and only `ENOSYS` makes it resend the copy as `FUSE_COPY_FILE_RANGE` for the rest of the
5187+
connection and, after `ENOSYS` to that one too, copy the data itself. The session did not know
5188+
opcode 53, so the catch-all of upstream's `FuseOperation::read` failed it with `EINVAL`, and the
5189+
system call failed in NVX's 6.18.38 guests. The commit declares the opcode in `protocol.rs`, which
5190+
no earlier position changes, decodes it as `FUSE_COPY_FILE_RANGE` is decoded, in the operation table
5191+
of `request.rs`, and fails it with `ENOSYS` in `Session::dispatch_helper`, without calling the file
5192+
system, so `Fuse::copy_file_range` keeps answering `FUSE_COPY_FILE_RANGE` alone, through position
5193+
327's `Session::write_out`. In `lib.rs`, it says so in a paragraph of the documentation of
5194+
`Fuse::copy_file_range`, after the one that position 327 adds. A short request still fails with
5195+
`EINVAL`, and the session still negotiates protocol 7.39; no format or version changes. It adds two
5196+
tests, in a `copy_file_range_64.rs` that it registers among the session's test modules before
5197+
position 323's `error_reply`, which use the session's test harness of positions 321, 322, and 325
5198+
and position 327's reply to `FUSE_COPY_FILE_RANGE`. Positions 318 and 319 also change `request.rs`,
5199+
PR13's position 047 and positions 321, 323, 326-328, and 356 change `lib.rs` and `session.rs`, and
5200+
position 324 changes `session.rs`; apart from the paragraph and the test module, the commit adds its
5201+
lines between upstream's, which none of those positions change. It is not a fixup: no earlier
5202+
position handles the opcode, and the catch-all is upstream's. Upstream main lacks the opcode too and
5203+
fails it the same way, but replaying the commit there conflicts in `lib.rs`, which lacks position
5204+
327's paragraph, and in `session.rs`, which lacks the session's test modules, so it cannot go
5205+
upstream on its own.
5206+
51825207
## PR summary
51835208

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

0 commit comments

Comments
 (0)