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 ff7db8a
Browse filesBrowse the repository at this point in the historyBrowse files
doc: map the host open flags of microVM create handles in the OpenVMM roadmap
Map position 396, the commit of microsoft/openvmm#5288, which NVX now
pins at 1495ac815, 270 commits past the mapped tip, on 4aeb405d9,
position 395, the head of microsoft/openvmm#5287:
- 396, virtiofs: record the host open flags of a microVM create handle.
VirtioFs::create records the host options with which it opens the
file, as VirtioFs::open does, rather than the guest's flags, so that
a save stores no __FMODE_EXEC, O_LARGEFILE, or O_NOFOLLOW, and
reopen_flags accepts the host architecture's O_LARGEFILE in place of
x86's 0x8000, so that the create handles that earlier releases saved
restore on every architecture (#2129).
Position 396 is a PR18 fixup, as positions 389 and 393 are: it fixes
defects of PR18's position 083 and needs nothing that a later position
adds but, for its test, position 164's helpers and position 334's
create_with_flags. Fold it into position 083, where its lines apply as
they are, and its test into position 335, where position 393's fold
shares create_with_flags. Of positions 372-395, only 385, 389, 390,
392, and 393 change its files. Upstream main, 8d4e03132, lacks the
defects, since its handles record no open flags and it lacks the
microVM's saved state, and replaying the commit there conflicts, so it
cannot go upstream on its own.
The Scope now names 350018ce4, position 389, as the head of
feature/microvm/dev, since microsoft/openvmm#5281 landed it.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@@ -2157,6 +2161,7 @@ whose first 269 commits are those of `feature/microvm/release/v6.1`, a v6.0 posi
2157
2161
| 393 | `5af753b17` | - | - | - | - | - | - | - | virtiofs: reopen a microVM handle with O_DIRECT on restore (microsoft/openvmm#5285); fold into 083, its test into 335 |
2158
2162
| 394 | `9822f732a` | - | - | - | - | - | - | - | lxutil: hard-link to one-character names on Windows (microsoft/openvmm#5286) |
2159
2163
| 395 | `4aeb405d9` | - | - | - | - | - | - | - | lxutil: refuse negative read_dir and pwrite offsets on Windows (microsoft/openvmm#5287) |
2164
+
| 396 | `1495ac815` | - | - | - | - | - | - | - | virtiofs: record the host open flags of a microVM create handle (microsoft/openvmm#5288); fold into 083, its test into 335 |
2160
2165
2161
2166
The remarks that say whether commits apply to upstream main record what was found on upstream main
2162
2167
when each commit was mapped: the v3.0 reorganization's base, `b2676222b`, for the commits that it
@@ -2170,7 +2175,7 @@ for positions 325 and 326, `bf353460f`, upstream main on 2026-11-21 and the fork
2170
2175
v8.0, for positions 327-355, `b50d0c979`, upstream main later on 2026-11-23, for position 356,
2171
2176
`5d6ab1cfa`, upstream main later that day, for positions 357-368, `efe0b08df`, upstream main later
2172
2177
still, for positions 369-375, and `8d4e03132`, upstream main on 2026-11-24, for positions
2173
-
376-395. They name the positions that the commits have now, but neither
2178
+
376-396. They name the positions that the commits have now, but neither
2174
2179
the v8.0 reorganization and the v7.2 rebase, both on `bf353460f`, the v7.1 rebase on `9a875b563`,
2175
2180
nor the v7.0 reorganization on `e6b458cc0` checked them again, nor did the v6.1 rebase check the
2176
2181
earlier ones on `7d90c4104`.
@@ -6057,6 +6062,51 @@ in `lib.rs`. Upstream main, `8d4e03132`, has both defects. The commit applies th
6057
6062
the merged tree `cargo check --all-targets -p lxutil` and lxutil's tests, its two included, pass on
6058
6063
Windows, so it can go upstream on its own.
6059
6064
6065
+
Position 396 has a microVM `FUSE_CREATE` handle record the host options with which the server opens
6066
+
the file rather than the guest's flags, so that a snapshot that holds the handle restores
6067
+
(microsoft/nvx#2129). Upstream's `util::open_flags` and `util::create_flags` of `7c92b147e`
6068
+
(microsoft/openvmm#4783) leave the flags that only the guest uses, `__FMODE_EXEC`, `O_LARGEFILE`,
6069
+
and `O_NOFOLLOW`, out of the options of the host open. PR18's position 083 has each handle record
6070
+
the open flags with which a restore reopens it: `open` records the options, through
6071
+
`VirtioFsInode::open`, but position 083 handed `create`'s handle the guest's flags as they came, and
6072
+
its `reopen_flags`, which checks the saved flags, refused `__FMODE_EXEC` and spelled `O_LARGEFILE`
6073
+
as x86's `0x8000`, though `lx`'s open flags follow the host's architecture. A snapshot of a guest
6074
+
that held a create handle whose flags held `__FMODE_EXEC`, which a Linux guest never sends with
6075
+
`FUSE_CREATE`, thus saved but failed to restore with `saved handle has unsupported open flags`, and
6076
+
on AArch64, where `O_LARGEFILE` is `0x20000` and `0x8000` is `O_NOFOLLOW`, so would every create
6077
+
handle of a 64-bit Linux guest, whose kernel adds `O_LARGEFILE` to every open. `create` now records
6078
+
the options, and `reopen_flags` accepts `lx::O_LARGEFILE`, which the create handles that earlier
6079
+
releases saved hold, in place of x86's value; the saved state keeps its format. In virtiofs's
6080
+
`lib.rs`, which PR06's position 010, PR13's position 048, PR18's positions 081 and 083 and its fixup
6081
+
at position 389, PR27's position 126, and positions 158, 160, 164, 320, 329, 330, 334, 335, 342,
6082
+
343, 350, 352, 358, 361, and 392 also change, it changes the argument that position 083 adds to the
6083
+
call of `VirtioFsFile::new` in upstream's `create`, and in `file.rs`, which PR06's position 010,
6084
+
PR18's position 083, and position 320 also change, it documents position 083's `open_flags` field.
6085
+
In the microVM's `state.rs`, which PR18's position 081 adds and PR18's positions 083 and 085 and its
6086
+
fixup at position 393, PR22's position 102, PR27's position 126, and positions 158, 160, 164, 165,
6087
+
194, 362, and 390 also change, it changes position 083's `O_LARGEFILE` in the list of
6088
+
`reopen_flags`, which position 393 extends with `O_DIRECT`. It adds a test to the microVM's
6089
+
persistence tests in `fs_tests.rs`, which PR18's position 081 adds and PR18's position 083 and its
6090
+
fixups at positions 389 and 393, PR22's position 102, and positions 164, 329-331, 335, 350, 354,
6091
+
355, 362, 363, 367, 371, 385, and 390 also change, after position 083's
6092
+
`reopen_flags_preserve_safe_status_bits_and_reject_effects`; it creates its file with position
6093
+
334's `create_with_flags`, which position 393 shares from `policy_tests.rs`, and writes and reads it
6094
+
with the helpers that position 164 shares from the policy tests and positions 362 and 390 import.
6095
+
It fixes defects of PR18's position 083 and needs nothing that a later position adds but, for its
6096
+
test, position 164's helpers and position 334's `create_with_flags`, so it is a PR18 fixup: fold it
6097
+
into position 083, where its lines of `create`, `VirtioFsFile`, and `reopen_flags` apply as they
6098
+
are, and its test into position 335, after position 083's test of `reopen_flags`, where position
6099
+
393's fold shares `create_with_flags`, with the imports of `read_node` and `write` that positions
6100
+
362 and 390 then no longer add. It follows position 395; of positions 372-395, only 385, 389, 390,
6101
+
392, and 393 change its files: position 389 another line of `lib.rs`, position 392 a test of a
6102
+
direct share there, positions 385, 389, 390, and 393 other tests of `fs_tests.rs`, where positions
6103
+
389, 390, and 393 also import helpers, position 390 `validate_microvm_state` and the check of the
6104
+
access mode after the list of `reopen_flags`, and position 393 that list. Upstream main,
6105
+
`8d4e03132`, lacks the defects, since its handles record no open flags and it lacks the microVM's
6106
+
saved state, and replaying the commit there conflicts in `file.rs` and `lib.rs`, which lack
6107
+
position 083's open flags, and in the microVM's `state.rs` and `fs_tests.rs`, which upstream main
6108
+
lacks, so it cannot go upstream on its own.
6109
+
6060
6110
## PR summary
6061
6111
6062
6112
Each count is of v8.0 commits, which include the fixups that the v3.0, v4.0, v5.0, v6.0, v7.0, and
@@ -6086,7 +6136,7 @@ v8.0 reorganizations folded into them; see [The v8.0 reorganization](#the-v80-re
6086
6136
| PR15 | P | microVM machine profile and minimal chipset | 050-060 | `abeabf34d..2dd8e1e92` | 11 | Foundation fan-in |
6087
6137
| PR16 | P | Fixed virtio-MMIO ABI and shared interrupt status | 061-064 | `f5753d818..e8369480d` | 4 | PR15 |
6088
6138
| PR17 | P | microVM snapshot capture and authoritative restore | 065-075 | `548bf2ec2..464aa9d27` | 11 | PR16 |
0 commit comments