Repository navigation
Commit 5b84cdb
microVM: remove portb's host input
portb, the microVM's byte channel at ports 0xe9 to 0xeb, delivered host
input to the guest's hvc0 console. microsoft/nvx#549 removes that
input, so that host input reaches a microVM guest only through its boot
and control consoles, by design rather than by how a frontend wires
portb.
The device no longer reads its host endpoint: its input-pending status
bit stays clear, a data read without a selected record returns zeros,
and it no longer takes part in the snapshot input gate. A snapshot
saves an empty input buffer, and a restore refuses the state of an
earlier VMM that holds input the guest had not read, rather than drop
it. The output buffer keeps its 1 MiB bound, and the machine ABI its
version: a host that never sends input was always valid.
When the boot console does not own the terminal, portb still writes to
stdout and keeps the terminal, but OpenVMM now discards keystrokes
until Ctrl-Q opens the REPL, instead of handing them to a device that
no longer reads them. The CLI and RPC guides say so.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 16975e6 commit 5b84cdb
5 files changed
Lines changed: 110 additions & 164 deletions
File tree
- Guide/src/reference/openvmm/management
- openvmm/openvmm_entry/src/microvm
- vm/devices
- chipset_resources/src
- chipset/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
1006 | 1010 | | |
1007 | 1011 | | |
1008 | 1012 | | |
1009 | | - | |
| 1013 | + | |
| 1014 | + | |
1010 | 1015 | | |
1011 | 1016 | | |
1012 | 1017 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
| 246 | + | |
246 | 247 | | |
247 | | - | |
248 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
| |||
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| 274 | + | |
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
| |||
324 | 328 | | |
325 | 329 | | |
326 | 330 | | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
329 | 334 | | |
| |||
856 | 861 | | |
857 | 862 | | |
858 | 863 | | |
859 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
860 | 867 | | |
861 | 868 | | |
862 | 869 | | |
863 | 870 | | |
| 871 | + | |
864 | 872 | | |
865 | 873 | | |
866 | 874 | | |
| |||
871 | 879 | | |
872 | 880 | | |
873 | 881 | | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
878 | 888 | | |
879 | 889 | | |
880 | 890 | | |
| |||
0 commit comments