Skip to content

Conversation

@mtjhrc
Copy link
Collaborator

@mtjhrc mtjhrc commented Jan 7, 2026

No description provided.

@mtjhrc mtjhrc changed the title Add support for attaching virtio consoles dynamically at runtime Add support for adding more console ports while VM is running Jan 7, 2026
@mtjhrc mtjhrc marked this pull request as draft January 7, 2026 13:56
@mtjhrc mtjhrc force-pushed the dyn-port-console branch 6 times, most recently from 1e4df25 to 482a48f Compare January 7, 2026 18:22
mtjhrc added 3 commits January 8, 2026 13:07
Introduce a static map to store references to running Vmm instances,
enabling operations on VMs after they have been started.

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Introduce krun_get_console_ready_fd() that returns an EventFd. The event is
signaled when the console device is ready according to the guest.
This allows applications to know when it's possible to start adding ports at
runtime.

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Add ConsoleController, an external handle that allows adding ports at
runtime after the VM has started. It uses a channel to send new port
descriptions to the running Console device.

Add Console::with_controller factory method that returns both the
Console and a ConsoleController.

Update krun_add_console_port_tty and krun_add_console_port_inout to
check RUNNING_CTX_MAP first, allowing ports to be added to a running VM.

Introduce krun_console_reserve_ports() which pre-allocate virtqueues in the
device for ports that will be added later at runtime.

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Add dynamic console management that waits for the console device to become ready,
then allows interactive addition of new console ports and pipe ports while the
VM is running.

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant