Skip to content

openvmm: remove byte-channel host input; move interactive and test consoles to the boot console #549

Closed

Description

Summary

Managed microVM launches never send host input through the byte channel (portb, ports 0xe9–0xeb). With --microvm-control-auth-stdin, OpenVMM connects it to stderr, output only. Remove its host input (RX) entirely, so host input reaches a guest only through the control console or the boot console, by design rather than by how the frontends wire it.

What uses RX today

  • nvx.py run and one-shot nvx.py sandbox run, whose shell runs on hvc0 when no boot console is configured.
  • test-microvm scenarios and benchmarks built from workload_boot_command, which type into the guest through OpenVMM's stdin, such as snapshot-core and the snapshot benchmark's console_input_dispatch phase.
  • The management RPC, which can attach the byte channel to a caller-chosen serial socket.

What stays

  • Output (TX): early boot messages (earlycon=xe9) and the managed agent's failure reports, which it writes to port 0xe9. With the boot console set to none, this is the only guest output that reaches openvmm.log in managed launches.
  • The restore packet, generation ID, and time samples, which the guest reads as separate records, not console input.

Tasks

  • OpenVMM: stop reading the host endpoint in vm/devices/chipset/src/microvm.rs, keep the input-pending status bit clear, and decide how restore treats pending RX bytes in existing snapshots.
  • NVX: move nvx.py run, nvx.py sandbox run, test-microvm, and the benchmarks to --virtio-console console, and decide whether the affected performance series reset.
  • Consider a TX bound smaller than 1 MiB.
  • Update doc/design/3.1-platform-control-device.md and the usage documentation.

Activity

  1. changed the title [-]microVM: remove byte-channel host input; move interactive and test consoles to the boot console[/-] [+]openvmm: remove byte-channel host input; move interactive and test consoles to the boot console[/+] on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions