[CRIU] [PATCH 0/14 RFC] Introduce library for socket C/R

Pavel Emelyanov xemul at virtuozzo.com
Mon Apr 18 06:01:44 PDT 2016


Hi,

In CRIU we use the TCP repair feature to live migrate TCP connection,
but this feature cannot be used w/o CRIU. So here's the libsoccr library
that makes an attempt to make this feature use-able in another projects.

The idea of the libsoccr usage is

1) pause the socket
2) get the connection info
3) get other socket parameters (address, peer, ports, options)

to dump the socket and

1) create and pause the socket
2) restore socket's connection info (part 1)
3) restore socket's name and peer (bind and connect)
4) restore socket's connection into (part 2)
5) resume the socket

for restore. So the libsoccr handles steps 1 and 2 on dump and 1, 2, 4 and 5
on restore. Stuff like address, peer and others are left for caller for
simplicity, but, probably, these can be implemented as wrappers in libsoccr.

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>


More information about the CRIU mailing list