SLIRP migration?
Hi Samuel, Jan,
I'd like to convert SLIRPs migration code to VMState
and avoid all the qemu_put_/qemu_get_'s - but first I'd like to understand when a lot of the slirp migration code makes sense.
I can see that migrating a VM with slirp makes sense (actually more commonly saving a VM with slirp to a file); but when that happens aren't you likely to lose all the network connections anyway? If that's the case then why bother saving all the TCP state?
Under what circumstances do the network connections survive and how can I test that?
Dave
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 5 lines · Dr. David Alan Gilbert
Hi Samuel, Jan,
I'd like to convert SLIRPs migration code to VMState
and avoid all the qemu_put_/qemu_get_'s - but first I'd like to understand when a lot of the slirp migration code makes sense.
Quoted 7 lines
I can see that migrating a VM with slirp makes sense (actually more commonly saving a VM with slirp to a file); but when that happens aren't you likely to lose all the network connections anyway? If that's the case then why bother saving all the TCP state?
Under what circumstances do the network connections survive and how can I test that?
I think I never tried this myself back then, nor do I remember any success story about slirp live migration from the top of my head.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 11 lines · * Jan Kiszka ([email protected]) wrote:
Quoted 10 lines · Dr. David Alan Gilbert
Hi Samuel, Jan,
I'd like to convert SLIRPs migration code to VMState
and avoid all the qemu_put_/qemu_get_'s - but first I'd like to understand when a lot of the slirp migration code makes sense.I can see that migrating a VM with slirp makes sense (actually more commonly saving a VM with slirp to a file); but when that happens aren't you likely to lose all the network connections anyway? If that's the case then why bother saving all the TCP state?
Quoted 5 lines
Quoted 2 lines
Under what circumstances do the network connections survive and how can I test that?
I think I never tried this myself back then, nor do I remember any success story about slirp live migration from the top of my head.
It certainly survives - i.e. if you migrate a VM with slirp the VM carries on running, and then you can make a new connection to the VM and it works.
Maybe the issue here is that you need to store a lot of state so that the guests view of the dieing connections after migration is correct?
Dave
Quoted 5 lines
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Hello,
Quoted 3 lines · Dr. David Alan Gilbert, on Wed 28 Sep 2016 19:00:45 +0100, wrote:
I can see that migrating a VM with slirp makes sense (actually more commonly saving a VM with slirp to a file); but when that happens aren't you likely to lose all the network connections anyway?
Yes.
Quoted 1 line
If that's the case then why bother saving all the TCP state?
Because there are not only network connections, actually the network connections are *not* saved: slirp_state_save iterates only over exec_list with ex_pty = 3, i.e. guestfwd to a device.
Samuel
Quoted 7 lines · * Samuel Thibault ([email protected]) wrote:
Hello,
Quoted 3 lines · Dr. David Alan Gilbert, on Wed 28 Sep 2016 19:00:45 +0100, wrote:
I can see that migrating a VM with slirp makes sense (actually more commonly saving a VM with slirp to a file); but when that happens aren't you likely to lose all the network connections anyway?
Quoted 7 lines
Yes.
Quoted 1 line
If that's the case then why bother saving all the TCP state?
Because there are not only network connections, actually the network connections are *not* saved:
slirp_state_saveiterates only overexec_listwithex_pty= 3, i.e. guestfwd to a device.
Ah! Thanks for the explanation, that makes a lot more sense.
Dave
Quoted 2 lines
Samuel
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK