Skip to content

Commit 3639d85

Browse files
authored
Merge pull request #1953 from microsoft/agents/issue-1618-aggregate-child-paths
openvmm: pin the resolution of microVM file child paths
2 parents ba75d01 + 6da4bb1 commit 3639d85

2 files changed

Lines changed: 40 additions & 12 deletions

File tree

‎doc/openvmm-upstream-roadmap.md‎

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
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
333, 342, 345, 347, and 351, and the PR13 fixups at positions 340 and 349.
12-
- NVX's pinned OpenVMM revision: `3aefff9ba4e7ff50d5d34671678da6b58cd423c6`, position 352, the head
13-
of microsoft/openvmm#5218, whose commit follows position 351, `8bea555db`, the head of
12+
- NVX's pinned OpenVMM revision: `de700ffc296303ebd76d79423c6ce1fd801d1dc5`, position 353, the head
13+
of microsoft/openvmm#5219, whose commit follows position 352, `3aefff9ba`, the head of
14+
microsoft/openvmm#5218, whose commit follows position 351, `8bea555db`, the head of
1415
microsoft/openvmm#5217, whose commit follows position 350, `189dc519f`, the head of
1516
microsoft/openvmm#5216, whose commit follows position 349, `2a483a06f`, the head of
1617
`feature/microvm/dev`, where microsoft/openvmm#5215 landed position 349 on position 348,
@@ -29,10 +30,10 @@
2930
landed, so each later commit's position is one less than before, and it added five fixups at its
3031
tip, positions 335-339. Of the 334 replayed commits, 47 conflicted with upstream and 13 replayed
3132
with new context; see [Conflicts of the v7.2 rebase](#conflicts-of-the-v72-rebase). The pin is
32-
226 commits past the mapped tip on the same first-parent chain. Positions 127-301, 303-332, 334,
33-
341, 343, 344, 346, 348, 350, and 352 are not yet assigned to PRs, positions 302, 333, 342, 345,
34-
347, and 351 are PR18 fixups, positions 340 and 349 are PR13 fixups, and positions 316 and 335-339
35-
are rebase fixups; see [Commits after the mapped tip](#commits-after-the-mapped-tip).
33+
227 commits past the mapped tip on the same first-parent chain. Positions 127-301, 303-332, 334,
34+
341, 343, 344, 346, 348, 350, 352, and 353 are not yet assigned to PRs, positions 302, 333, 342,
35+
345, 347, and 351 are PR18 fixups, positions 340 and 349 are PR13 fixups, and positions 316 and
36+
335-339 are rebase fixups; see [Commits after the mapped tip](#commits-after-the-mapped-tip).
3637
- Upstream main: `bf353460ff70e4a65627bb7003bed2cad1ce121f` (2026-11-21), the fork base; see
3738
[Upstream main past the fork base](#upstream-main-past-the-fork-base).
3839

@@ -1639,7 +1640,8 @@ bf353460f
16391640
-> virtio-fs aggregate root reads too small for their next entry refused [350]
16401641
-> PR18 fixup [351]
16411642
-> virtio-fs links refused for nodes whose names are all gone [352]
1642-
-> 3aefff9ba (NVX pin)
1643+
-> microVM file children attached through relative paths and symbolic links [353]
1644+
-> de700ffc2 (NVX pin)
16431645
```
16441646

16451647
For upstream review, PR01-PR03, PR05, PR06, and PR14 can be rebased independently onto current
@@ -1699,7 +1701,7 @@ tests.
16991701

17001702
## Commits after the mapped tip
17011703

1702-
The NVX pin extends the chain past position 126 without merges. Of its 226 later commits, positions
1704+
The NVX pin extends the chain past position 126 without merges. Of its 227 later commits, positions
17031705
302, 333, 342, 345, 347, and 351 are PR18 fixups, positions 340 and 349 are PR13 fixups, position
17041706
316 is the fixup of the v7.1 rebase, positions 335-339 are the fixups of the v7.2 rebase, and the
17051707
others are not yet classified or assigned to PRs.
@@ -1710,15 +1712,15 @@ of the v4.0 reorganization, positions 201-206 followed it, positions 207-213 fol
17101712
reorganization, positions 214 and 215 followed the v5.1 rebase, positions 216-253 followed the
17111713
v6.0 reorganization, positions 254-296 followed the v6.1 rebase, positions 297-315 followed the
17121714
v7.0 reorganization, position 316 is the v7.1 rebase's fixup, positions 317-334 followed the
1713-
v7.1 rebase, positions 335-339 are the v7.2 rebase's fixups, and positions 340-352 followed the
1715+
v7.1 rebase, positions 335-339 are the v7.2 rebase's fixups, and positions 340-353 followed the
17141716
v7.2 rebase, so they combine none, apart from
17151717
position 215, which combines v5.1 positions 222 and 223, and the commits that the v7.0
17161718
reorganization folded into them. Each commit through position 316 has the position that it had in
17171719
v7.0 and v7.1, and each of positions 317-334 is its v7.1 position less one, since the v7.2 rebase
17181720
dropped v7.1 position 317, upstream's microsoft/openvmm#5160, which v7.1 had backported. Each
17191721
commit's v6.1 position is its v6.0 position less seven, the number of commits that the v6.1 rebase
17201722
dropped before it, and its v6.0 position is its v5.1 position through 147 and one less from v5.1
1721-
position 149 on, and positions 297-352 have no earlier position; see
1723+
position 149 on, and positions 297-353 have no earlier position; see
17221724
[Conflicts of the v7.2 rebase](#conflicts-of-the-v72-rebase),
17231725
[The v7.0 reorganization](#the-v70-reorganization),
17241726
[Conflicts of the v6.1 rebase](#conflicts-of-the-v61-rebase), and
@@ -1957,6 +1959,7 @@ whose first 220 commits are those of `feature/microvm/release/v6.0`, and a v4.0
19571959
| 350 | `189dc519f` | - | - | - | - | - | - | virtiofs: fail a synthetic root read too small for its next entry (microsoft/openvmm#5216) |
19581960
| 351 | `8bea555db` | - | - | - | - | - | - | virtiofs: skip gone or hidden entries in microVM READDIRPLUS (microsoft/openvmm#5217); fold into 083, its policy test into 160 |
19591961
| 352 | `3aefff9ba` | - | - | - | - | - | - | virtiofs: refuse to link a node whose last name is gone (microsoft/openvmm#5218) |
1962+
| 353 | `de700ffc2` | - | - | - | - | - | - | virtiofs: resolve a microVM file child's path as its identity does (microsoft/openvmm#5219) |
19601963

19611964
The remarks that say whether commits apply to upstream main record what was found on upstream main
19621965
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -1967,7 +1970,7 @@ and `c0694c4da`, upstream main on 2026-11-16, for positions 297-306, `c4419be15`
19671970
main on 2026-11-19, for positions 321-324, `78af54a51`, upstream main on 2026-11-20, for position
19681971
325, `d83f87209`, upstream main later that day, for position 326, `265f0a73f`, upstream main
19691972
later still, for positions 327 and 328, and `bf353460f`, upstream main on 2026-11-21 and the v7.2
1970-
fork base, for positions 329-334 and 340-352.
1973+
fork base, for positions 329-334 and 340-353.
19711974
They name the positions that the commits have now, but neither the v7.2 rebase on `bf353460f`, the
19721975
v7.1 rebase on `9a875b563`, nor the v7.0 reorganization on `e6b458cc0` checked them again, nor did
19731976
the v6.1 rebase check the earlier ones on `7d90c4104`.
@@ -4737,6 +4740,31 @@ there conflicts in the microVM's `policy_tests.rs`, which upstream main lacks, a
47374740
`object_path` reads the names that position 048 adds, which upstream main lacks too, so it cannot
47384741
go upstream on its own.
47394742

4743+
Position 353 has `open_microvm_volume` open the file that the host path of an aggregate's file child
4744+
resolves to, as the child's identity does, so that a bare file name or a symbolic link to the file
4745+
attaches (microsoft/nvx#1618). Position 165's `microvm_file_identity` and
4746+
`MicroVmAggregateChild::validate_root_path` canonicalize the path, from the current directory and
4747+
through symbolic links to their final target, but its `open_microvm_volume` split the path as
4748+
given: it opened the path's parent, which is empty for a bare name, so that opening the volume
4749+
failed with `ENOENT` on Linux or `EINVAL` on Windows, and exposed the path's last name, which for a
4750+
link is the link's, whose `lstat` the volume of a file child refuses with `EACCES`. The commit
4751+
resolves a symbolic link at the path's end to its final target, as the identity does, and makes
4752+
any other path absolute, which keeps the name that the path gives: on Windows, canonicalization
4753+
would turn a path to the default stream of a file, `file::$DATA`, into the file's, which position
4754+
343's check would then accept. That check thus applies to the name that the volume uses, the
4755+
target's for a link. The command line, which passes canonical paths and refuses links, directory
4756+
shares and children, and the saved state are unchanged. It changes the file branch of
4757+
`open_microvm_volume` in the microVM's `fs.rs`, which position 164 adds, position 165 extends to
4758+
files, and position 343 changes, and the rustdoc of `new_microvm_aggregate`, which position 164
4759+
adds and positions 165 and 343 change; PR18's positions 081, 083, and 085, PR22's position 102,
4760+
PR27's position 126, positions 158, 160, 194, 332, and 344, and PR18's fixups at positions 342 and
4761+
347 also change the file. It adds tests to the microVM's aggregate tests, which position 164 adds
4762+
and positions 165, 194, 341, and 343 also change. It fixes a defect of position 165, which no PR
4763+
maps, so it is not yet assigned to a PR either and follows position 165, as position 343 does.
4764+
Upstream main lacks the defect, since it lacks the microVM profile and its file children.
4765+
Replaying the commit there conflicts in both files, which upstream main lacks, so it cannot go
4766+
upstream on its own.
4767+
47404768
## PR summary
47414769

47424770
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)