python/machine: use socketpair() for console socket
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest6 patches 2 repliesIn review
- v26 patches 17 repliesSuperseded
- v14 patches 7 repliesSuperseded
Changes in v3 from the cover letter
- Rebased.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | python/machine: move socket setup out of _base_args propertypython/ | +2 | 0 replies | |
| 2/6 | python/machine: close sock_pair in cleanup pathpython/ | +5 | 0 replies | |
| 3/6 | python/console_socket: accept existing FD in initializerpython/ | +21 | 0 replies | |
| 4/6 | python/machine: use socketpair() for console connectionspython/ | +27 | 0 replies | |
| 5/6 | python/machine: use socketpair() for qtest connectionpython/ | +40 | 0 replies | |
| 6/6 | python/machine: remove unused sock_dir argumentpython/ python/ tests/ +4 more | +9 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Daniel P. Berrangé | Ani Sinha |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | R-b |
| 3/6 | R-b | R-b |
| 4/6 | R-b | R-b |
| 5/6 | R-b | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/6] python/machine: use socketpair() for console socket
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.
May or may not help with various race conditions where early console output is not showing up in the logs and/or potentially being missed by wait_for_console_pattern.
V3:
- Rebased.
V2:
- Fixed some Socket ownership/garbage collection problems
- Fixed callers of now-dropped VM arguments/properties
- added a dedicated sock_fd arg to ConsoleSocket()
- now using socketpair() for qtest console, too.
- dropped sock_dir arg from *all* machine.py classes
- Tested quite a bit more thoroughly ...
CI: https://gitlab.com/jsnow/qemu/-/pipelines/1019123030
John Snow (6):
python/machine: move socket setup out of _base_args property python/machine: close sock_pair in cleanup path python/console_socket: accept existing FD in initializer python/machine: use socketpair() for console connections python/machine: use socketpair() for qtest connection python/machine: remove unused sock_dir argument
python/qemu/machine/console_socket.py | 29 ++++++++--- python/qemu/machine/machine.py | 58 +++++++++++++--------- python/qemu/machine/qtest.py | 54 +++++++++++++++----- tests/avocado/acpi-bits.py | 5 +- tests/avocado/avocado_qemu/__init__.py | 2 +- tests/avocado/machine_aspeed.py | 5 +- tests/qemu-iotests/iotests.py | 2 +- tests/qemu-iotests/tests/copy-before-write | 3 +- 8 files changed, 104 insertions(+), 54 deletions(-)
Signature · 1 line
2.41.0