On Mon, Mar 01, 2021 at 05:27:27PM +0000, Stefan Hajnoczi wrote: > The QMP monitor, NBD server, and vhost-user-blk export all support file > descriptor passing. This is a useful technique because it allows the > parent process to spawn and wait for qemu-storage-daemon without busy > waiting, which may delay startup due to arbitrary sleep() calls. > > This Python example is inspired by the test case written for libnbd by > Richard W.M. Jones <[email protected]>: > https://gitlab.com/nbdkit/libnbd/-/commit/89113f484effb0e6c322314ba75c1cbe07a04543 > > Thanks to Daniel P. Berrangé <[email protected]> for suggestions on > how to get this working. Now let's document it! > > Reported-by: Richard W.M. Jones <[email protected]> > Cc: Kevin Wolf <[email protected]> > Cc: Daniel P. Berrangé <[email protected]> > Signed-off-by: Stefan Hajnoczi <[email protected]> > --- > v2: > * Use /var/run/qmp.sock instead of /tmp/qmp-$PID.sock to prevent > security issues with world-writeable directories [Rich, Daniel] > --- > docs/tools/qemu-storage-daemon.rst | 42 ++++++++++++++++++++++++++++-- > 1 file changed, 40 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
