diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2021-03-01 17:27:27 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2021-03-08 14:55:19 +0100 |
commit | 3f14b909ebe7296eef6d4b1a1ed5f602ab129602 (patch) | |
tree | fce96b20cbb87121b00b8d7270b04d37d432ddcf /hw/display/framebuffer.c | |
parent | 03d2b412aaf2078425f8472f31c8a9c2340969eb (diff) | |
download | qemu-3f14b909ebe7296eef6d4b1a1ed5f602ab129602.zip qemu-3f14b909ebe7296eef6d4b1a1ed5f602ab129602.tar.gz qemu-3f14b909ebe7296eef6d4b1a1ed5f602ab129602.tar.bz2 |
docs: show how to spawn qemu-storage-daemon with fd passing
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 <rjones@redhat.com>:
https://gitlab.com/nbdkit/libnbd/-/commit/89113f484effb0e6c322314ba75c1cbe07a04543
Thanks to Daniel P. Berrangé <berrange@redhat.com> for suggestions on
how to get this working. Now let's document it!
Reported-by: Richard W.M. Jones <rjones@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210301172728.135331-2-stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/display/framebuffer.c')
0 files changed, 0 insertions, 0 deletions