Like we did for the QMP socket, use socketpair() for the console socket so that hopefully there isn't a race condition during early boot where data might get dropped on the floor.
"lightly tested"; passes local tests and gitlab CI. Doesn't seem to make anything worse. John Snow (4): python/machine: move socket setup out of _base_args property python/console_socket: accept existing FD in initializer python/machine: use socketpair() for console connections python/machine: remove unused console socket configuration arguments python/qemu/machine/console_socket.py | 11 +++--- python/qemu/machine/machine.py | 40 +++++++++------------- python/qemu/machine/qtest.py | 6 ++-- tests/qemu-iotests/tests/copy-before-write | 3 +- 4 files changed, 27 insertions(+), 33 deletions(-) -- 2.41.0