summary refs log tree commit diff stats
path: root/kvm-all.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2017-02-04 10:03:17 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2017-02-16 15:30:45 +0100
commita721f53b8f6a30fdc2b6e9fca13ec6c2d762b996 (patch)
treefd16c92d396465444058815adf765f689f61c861 /kvm-all.c
parent41eeb0e601cbc7ac28fa35547d2426f349ef137d (diff)
downloadfocaccia-qemu-a721f53b8f6a30fdc2b6e9fca13ec6c2d762b996.tar.gz
focaccia-qemu-a721f53b8f6a30fdc2b6e9fca13ec6c2d762b996.zip
qemu-nbd: Implement socket activation.
Socket activation (sometimes known as systemd socket activation)
allows an Internet superserver to pass a pre-opened listening socket
to the process, instead of having qemu-nbd open a socket itself.  This
is done via the LISTEN_FDS and LISTEN_PID environment variables, and a
standard file descriptor range.

This change partially implements socket activation for qemu-nbd.  If
the environment variables are set correctly, then socket activation
will happen automatically, otherwise everything works as before.  The
limitation is that LISTEN_FDS must be 1.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Message-Id: <20170204100317.32425-2-rjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions