search for: vsock_cid

Displaying 6 results from an estimated 6 matches for "vsock_cid".

2019 Nov 22
1
[nbdkit PATCH] nbd: Add vsock_cid= transport option
...n - nbdkit nbd plugin =head1 SYNOPSIS - nbdkit nbd { socket=SOCKNAME | hostname=HOST [port=PORT] | [uri=]URI } - [export=NAME] [retry=N] [shared=BOOL] [tls=MODE] [tls-certificates=DIR] - [tls-verify=BOOL] [tls-username=NAME] [tls-psk=FILE] + nbdkit nbd { socket=SOCKNAME | { hostname=HOST | vsock_cid=CID } [port=PORT] | + [uri=]URI } [export=NAME] [retry=N] [shared=BOOL] [tls=MODE] + [tls-certificates=DIR] [tls-verify=BOOL] [tls-username=NAME] [tls-psk=FILE] =head1 DESCRIPTION @@ -27,8 +27,8 @@ TCP and use plaintext only on a Unix socket. =head1 PARAMETERS -One of B<socket>,...
2020 Jul 07
2
[nbdkit PATCH] nbd: Add vsock-cid= transport option
...p for the various keys recognized. */ static int nbdplug_config (const char *key, const char *value) @@ -148,6 +159,10 @@ nbdplug_config (const char *key, const char *value) hostname = value; else if (strcmp (key, "port") == 0) port = value; + else if (strcmp (key, "vsock_cid") == 0 || + strcmp (key, "vsock-cid") == 0 || + strcmp (key, "cid") == 0) + raw_cid = value; else if (strcmp (key, "uri") == 0) uri = value; else if (strcmp (key, "command") == 0 || strcmp (key, "arg") == 0) {...
2019 Oct 18
2
Re: [PATCH nbdkit] Add support for AF_VSOCK.
...forms with AF_VSOCK have SOCK_CLOEXEC. Make this #else just be an #error. > +#endif > + if (sock == -1) { > + perror ("bind_unix_socket: socket"); > + exit (EXIT_FAILURE); > + } Also, it wouldn't be that much harder for a followup patch exposing: nbdkit nbd vsock_cid=... vsock_port=... to have our passthrough wrapper call into libnbd's nbd_connect_vsock, and let nbdkit transparently convert from vsock server to TCP/Unix client. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
2020 Jul 07
0
Re: [nbdkit PATCH] nbd: Add vsock-cid= transport option
...*/ > static int > nbdplug_config (const char *key, const char *value) > @@ -148,6 +159,10 @@ nbdplug_config (const char *key, const char *value) > hostname = value; > else if (strcmp (key, "port") == 0) > port = value; > + else if (strcmp (key, "vsock_cid") == 0 || > + strcmp (key, "vsock-cid") == 0 || > + strcmp (key, "cid") == 0) > + raw_cid = value; > else if (strcmp (key, "uri") == 0) > uri = value; > else if (strcmp (key, "command") == 0 || strcmp (...
2019 Oct 18
2
[PATCH nbdkit] 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
2020 Jul 01
15
[PATCH nbdkit 0/9] nbd: Implement command= and socket-fd= parameters.
I fixed the deadlock - turned out to be an actual bug in the nbd plugin (see patch 8). I changed the command syntax so it's now: nbdkit nbd command=qemu arg=-f arg=qcow2 arg=/path/to/disk.qcow2 Nir wrote: 18:08 < nsoffer> rwmjones: regarding the nbd proxy patches, did you have specific flow that help us? 18:08 < nsoffer> rwmjones: or this is just a way to support qcow2 in the