socket: 0.982 PID: 0.882 device: 0.838 performance: 0.828 network: 0.764 graphic: 0.745 debug: 0.546 permissions: 0.446 semantic: 0.438 vnc: 0.421 boot: 0.400 KVM: 0.348 files: 0.304 other: 0.143 QEMU does not close listening socket for incoming migration when post-copy migration breaks Description of problem: QEMU keeps listening on the incoming port even after breaking a post-copy migration using "migrate-pause" QMP command. And even once migration is finished after recovering it "migrate-recover" using a different port number. If "migrate-recover" is called with a URI specifying the original port (which is still in LISTEN state), QEMU reports "Failed to find an available port: Address already in use". Steps to reproduce: 1. start migration 2. wait for the first iteration to finish 3. switch to post-copy using "migrate-start-postcopy" 3. break migration with "migrate-pause" 4. check lsof -p $QEMU_PID Additional information: