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(-)

-- 
2.9.3


Reply via email to