diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-02-12 18:07:15 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-02-12 19:47:28 +0100 |
commit | b899141ad52fb417fe608d9c8cfe66f9572207c7 (patch) | |
tree | 9032870d08dc753d03a92a5cab9296feb6f1a562 /passt.1 | |
parent | 155cd0c41e549cea956b7f8506cda7803cf63419 (diff) | |
download | passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.tar passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.tar.gz passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.tar.bz2 passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.tar.lz passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.tar.xz passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.tar.zst passt-b899141ad52fb417fe608d9c8cfe66f9572207c7.zip |
Add interfaces and configuration bits for passt-repair
In vhost-user mode, by default, create a second UNIX domain socket
accepting connections from passt-repair, with the usual listener
socket.
When we need to set or clear TCP_REPAIR on sockets, we'll send them
via SCM_RIGHTS to passt-repair, who sets the socket option values we
ask for.
To that end, introduce batched functions to request TCP_REPAIR
settings on sockets, so that we don't have to send a single message
for each socket, on migration. When needed, repair_flush() will
send the message and check for the reply.
Co-authored-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.1')
-rw-r--r-- | passt.1 | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -429,6 +429,17 @@ Enable vhost-user. The vhost-user command socket is provided by \fB--socket\fR. Print back-end capabilities in JSON format, only meaningful for vhost-user mode. .TP +.BR \-\-repair-path " " \fIpath +Path for UNIX domain socket used by the \fBpasst-repair\fR(1) helper to connect +to \fBpasst\fR in order to set or clear the TCP_REPAIR option on sockets, during +migration. \fB--repair-path none\fR disables this interface (if you need to +specify a socket path called "none" you can prefix the path by \fI./\fR). + +Default, for \-\-vhost-user mode only, is to append \fI.repair\fR to the path +chosen for the hypervisor UNIX domain socket. No socket is created if not in +\-\-vhost-user mode. + +.TP .BR \-F ", " \-\-fd " " \fIFD Pass a pre-opened, connected socket to \fBpasst\fR. Usually the socket is opened in the parent process and \fBpasst\fR inherits it when run as a child. This |