search for: mode_vsock

Displaying 3 results from an estimated 3 matches for "mode_vsock".

2019 Oct 18
0
[PATCH libnbd 2/2] api: Add support for AF_VSOCK.
...x SOCKET\n" +" nbdfuse MOUNTPOINT[/FILENAME] --vsock CID PORT\n" "\n" "Please read the nbdfuse(1) manual page for full usage.\n" "\n" @@ -139,6 +141,7 @@ main (int argc, char *argv[]) MODE_SOCKET_ACTIVATION, MODE_TCP, MODE_UNIX, + MODE_VSOCK, } mode = MODE_URI; enum { HELP_OPTION = CHAR_MAX + 1, @@ -161,6 +164,7 @@ main (int argc, char *argv[]) { NULL } }; int c, fd, r; + uint32_t cid, port; int64_t ssize; const char *s; struct fuse_args fuse_args = FUSE_ARGS_INIT (0, NULL); @@ -262,6 +266,10 @@ main (in...
2019 Oct 18
5
[PATCH libnbd 0/2] api: Add support for AF_VSOCK.
This is a series of patches to libnbd and nbdkit adding AF_VSOCK support. On the host side it allows you to start an nbdkit instance which listens on a virtio-vsock socket: $ ./nbdkit -fv --vsock memory 1G ... nbdkit: debug: bound to vsock 2:10809 On the guest side you can then use libnbd to connect to the server: $ ./run nbdsh -c 'h.connect_vsock(2, 10809)' -c
2019 Oct 18
4
Re: [PATCH libnbd 2/2] api: Add support for AF_VSOCK.
...guest > and host. You cannot start a server and client on the host and talk > between them, which is what we'd need to write a sane test. > --- > @@ -357,6 +366,23 @@ main (int argc, char *argv[]) > exit (EXIT_FAILURE); > } > break; > + > + case MODE_VSOCK: > + if (sscanf (argv[optind], "%" SCNu32, &cid) != 1) { sscanf() can't detect overflow ;( > +++ b/generator/generator > + "connect_vsock", { > + default_call with > + args = [ UInt32 "cid"; UInt32 "port" ]; ret = RErr; &gt...