mirror of
https://passt.top/passt
synced 2025-06-17 12:45:34 +02:00
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>
This commit is contained in:
parent
1d807fc720
commit
8bfcc9208c
3 changed files with 213 additions and 1 deletions
7
passt.c
7
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue