virtio-devices: console: Detect PTY connection/disconnection

Through multiple changes, this patch aims at providing a reliable
solution for detecting the state of the PTY's connection. Being able to
find out when the other end of the PTY is connected is essential to
prevent the loss of data being output through the PTY. When the PTY
isn't connected, the output is buffered through the SerialBuffer, the
same solution that was created for the serial port initially.

Fixes #4521

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-08-25 10:38:42 +02:00
parent 9d2e835d14
commit a391bce781
2 changed files with 217 additions and 26 deletions
+1
View File
@@ -24,6 +24,7 @@ rate_limiter = { path = "../rate_limiter" }
seccompiler = "0.2.0"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.85"
serial_buffer = { path = "../serial_buffer" }
thiserror = "1.0.32"
versionize = "0.1.6"
versionize_derive = "0.1.4"