Repository navigation
Commit ec4f30d
committed
vmm: migration: abort receive on unexpected EOF while receiving memory
This cherry-pick is needed as the new approach doesn't send the
Request::abandon() anymore.
If the sender closes the connection while the receiver is reading
memory, e.g. after a canceled migration, read_volatile_from() returns
Ok(0). The receive loop treated this as a zero-progress read and spun
forever, leaving receive-migration (and thus the destination VMM's
API) hanging indefinitely.
Found by the migration cancellation integration tests.
On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>1 parent 9737f0a commit ec4f30d
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1170 | 1177 | | |
1171 | 1178 | | |
1172 | 1179 | | |
| |||
0 commit comments