Skip to content

qga: systemd socket activation for AF_UNIX and AF_VSOCK

Stefan Hajnoczi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2configure: add libsystemd checkconfigure+34 -02 replies
2/2qga: add systemd socket activation supportqga/Makefile.objs qga/channel-posix.c qga/channel-win32.c +2 more+84 -350 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] qga: systemd socket activation for AF_UNIX and AF_VSOCK

These patches add optional systemd socket activation support to the QEMU guest agent. The listen socket is created by systemd. qemu-ga is only launched when the first client connects and the listen fd is passed in. The guest agent detects socket activation automatically on startup. There are no new command-line options.

I wrote this code to test systemd AF_VSOCK socket activation but it also works with AF_UNIX.

Stefan Hajnoczi (2):
configure: add libsystemd check
qga: add systemd socket activation support

 configure           | 34 +++++++++++++++++++++++++++
 qga/Makefile.objs   |  3 +++
 qga/channel.h       |  3 ++-
 qga/channel-posix.c | 66 ++++++++++++++++++++++++++++++-----------------------
 qga/channel-win32.c |  2 +-
 qga/main.c          | 45 ++++++++++++++++++++++++++++++++----
 6 files changed, 118 insertions(+), 35 deletions(-)
Signature · 1 line
2.9.3