qemu-storage-daemon: Add main loop
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:30:00 +0000 (15:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:28 +0000 (17:21 +0100)
commitaa70683ded5ac3c1468883f4b09d7d4077ae33ca
tree185793af896c037d697175aa6e9d009446fe5eff
parent39411120b7bd58cdd1bdf0e14d3adb5a513dc6c7
qemu-storage-daemon: Add main loop

Instead of exiting after processing all command line options, start a
main loop and keep processing events until exit is requested with a
signal (e.g. SIGINT).

Now qemu-storage-daemon can be used as an alternative for qemu-nbd that
provides a few features that were previously only available from QMP,
such as access to options only available with -blockdev and the socket
types 'vsock' and 'fd'.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-13-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Makefile.objs
qemu-storage-daemon.c