On Thu, Aug 20, 2026 at 02:39:46PM +0300, Andrey Drobyshev wrote:
CPR migration with a vhost-vsock device currently crashes the target
QEMU. The device ownership is not handed over, so while the source
QEMU still holds the guest CID hashed in the kernel, the target's freshly
opened vhost-vsock device fails to set the same CID in realize():
qemu-system-x86_64: -device vhost-vsock-pci,id=vsock0,guest-cid=3:
vhost-vsock: unable to set guest cid: Address already in use
Add an unconditional migration blocker for the CPR modes, so that such
a migration fails early and gracefully instead. The following patches
implement the actual vhost-vsock CPR support, and the blocker is lifted
once it's fully working.
Signed-off-by: Andrey Drobyshev <[email protected]>
---
hw/virtio/vhost-vsock.c | 27 +++++++++++++++++++++++----
include/hw/virtio/vhost-vsock.h | 1 +
2 files changed, 24 insertions(+), 4 deletions(-)
Acked-by: Stefano Garzarella <[email protected]>