Skip to content

Commit

Permalink
virtio/console: open console on PORT_READY
Browse files Browse the repository at this point in the history
On PORT_READY, EDK2 expects the console port to be open in addition be
marked as console, so do it accordingly.

Signed-off-by: Sergio Lopez <slp@redhat.com>
  • Loading branch information
slp committed Feb 6, 2024
1 parent bc5259f commit eb77563
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/devices/src/virtio/console/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ impl Console {

if self.ports[cmd.id as usize].is_console() {
self.control.mark_console_port(mem, cmd.id);
self.control.port_open(cmd.id, true);
} else {
// We start with all ports open, this makes sense for now,
// because underlying file descriptors STDIN, STDOUT, STDERR are always open too
Expand Down

0 comments on commit eb77563

Please sign in to comment.