python/machine: use socketpair() for console connections
commit1d4796cd008373a1c1657473f7c7e82eaf32ea1b
authorJohn Snow <jsnow@redhat.com>
Thu, 28 Sep 2023 04:49:41 +0000 (28 00:49 -0400)
committerJohn Snow <jsnow@redhat.com>
Wed, 11 Oct 2023 20:02:02 +0000 (11 16:02 -0400)
tree83548ebffb953e628b83b87b7fae0ee2e3167d30
parent5f263cb1ccfb6f038fe706d9876d1cea8871a83a
python/machine: use socketpair() for console connections

Create a socketpair for the console output. This should help eliminate
race conditions around console text early in the boot process that might
otherwise have been dropped on the floor before being able to connect to
QEMU under "server,nowait".

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20230928044943.849073-5-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine/machine.py