mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
virtiofsd: Start wiring up vhost-user
Listen on our unix socket for the connection from QEMU, when we get it initialise vhost-user and dive into our own loop variant (currently dummy). Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
d14bf584dd
commit
f6f3573c6f
6 changed files with 106 additions and 6 deletions
|
@ -36,6 +36,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "fuse_virtio.h"
|
||||
#include "fuse_lowlevel.h"
|
||||
#include <assert.h>
|
||||
#include <dirent.h>
|
||||
|
@ -1395,11 +1396,7 @@ int main(int argc, char *argv[])
|
|||
fuse_daemonize(opts.foreground);
|
||||
|
||||
/* Block until ctrl+c or fusermount -u */
|
||||
if (opts.singlethread) {
|
||||
ret = fuse_session_loop(se);
|
||||
} else {
|
||||
ret = fuse_session_loop_mt(se, opts.clone_fd);
|
||||
}
|
||||
ret = virtio_loop(se);
|
||||
|
||||
fuse_session_unmount(se);
|
||||
err_out3:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue