aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-03-17 10:57:45 +0100
committerStefano Brivio <sbrivio@redhat.com>2021-03-18 12:58:07 +0100
commit8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2 (patch)
tree3d1beace28ced33b665533582dae7b0588640f5f /passt.c
parent1d807fc720bda7ec446c683bbc1a5e32897ca04e (diff)
downloadpasst-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.tar
passt-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.tar.gz
passt-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.tar.bz2
passt-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.tar.lz
passt-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.tar.xz
passt-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.tar.zst
passt-8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2.zip
passt: qemu patch for direct UNIX domain connection without the qrap wrapper
...and, while at it, a second patch to fail when connect() fails in turn with EINVAL. These two patches haven't been sent upstream yet. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.c')
-rw-r--r--passt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/passt.c b/passt.c
index 98576a6..6bc040a 100644
--- a/passt.c
+++ b/passt.c
@@ -562,7 +562,12 @@ listen:
listen(fd_unix, 1);
fprintf(stderr,
"You can now start qrap:\n\t"
- "./qrap 5 kvm ... -net socket,fd=5 -net nic,model=virtio\n\n");
+ "./qrap 5 kvm ... -net socket,fd=5 -net nic,model=virtio\n"
+ "or directly qemu, patched with:\n\t"
+ "qemu/0001-net-Allow-also-UNIX-domain-sockets-to-be-used-as-net.patch\n"
+ "as follows:\n\t"
+ "kvm ... -net socket,connect="
+ UNIX_SOCK_PATH " -net nic,model=virtio\n\n");
c.fd_unix = accept(fd_unix, NULL, NULL);
ev.events = EPOLLIN | EPOLLET | EPOLLRDHUP | EPOLLERR | EPOLLHUP;