Skip to content

python: remove socket_scm_helper

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 1 replyIn review

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] python: remove socket_scm_helper

I suspect no one has ever looked at socket_scm_helper.c, because when I did my reaction was just "why". The functionality of this 136-line program can be reproduced in Python with fewer lines of code than it takes to invoke it. Do it, and let it rest in peace.

The only reason not to do that could be because of the upcoming switch to aqmp. For that, the new send_fd method has to be wrapped to use transport.get_extra_info('socket') and loop.run_in_executor. Let me know if you prefer to hold on this until later.

Paolo

Paolo Bonzini (4):
python: stop using socket_scm_helper
socket_scm_helper: remove
python: raise OSError from send_fd_scm
python: split the two sides of send_fd_scm

 python/qemu/machine/machine.py         |  58 +++--------
 python/qemu/machine/qtest.py           |   2 -
 python/qemu/qmp/__init__.py            |  15 +++
 tests/Makefile.include                 |   5 +-
 tests/meson.build                      |   4 -
 tests/qemu-iotests/045                 |   3 +-
 tests/qemu-iotests/147                 |   3 +-
 tests/qemu-iotests/iotests.py          |   3 -
 tests/qemu-iotests/meson.build         |   5 -
 tests/qemu-iotests/socket_scm_helper.c | 136 -------------------------
 tests/qemu-iotests/testenv.py          |   8 +-
 11 files changed, 35 insertions(+), 207 deletions(-)
 delete mode 100644 tests/qemu-iotests/meson.build
 delete mode 100644 tests/qemu-iotests/socket_scm_helper.c
Signature · 1 line
2.31.1