id = 1305 title = "qemu will detach usbredir if backend chardev socket disconnect" state = "opened" created_at = "2022-11-08T06:34:10.310Z" closed_at = "n/a" labels = ["Chardev", "USB"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1305" host-os = "CentOS 7.4" host-arch = "x86" qemu-version = "QEMU emulator version 2.12.0 (qemu-kvm-ev-2.12.0-44.1.el7)" guest-os = "CentOS 7" guest-arch = "x86" description = """When using the usbredir device in the VM, initiate a hot migration to the VM. After the migration is completed, the drive letter of the usb in the VM has changed. Actually the device has been unplugged and re-plugged in the VM. I think we should keep the plugged state of the device after the migration?""" reproduce = """1. Start a usbredirserver `usbredirserver -p 7000 -v 4 5-2`; 2. Start a VM with a usbredir device attached to it; 3. Mount the usb device in the VM; 4. Migrate the VM, after the migration done, wait a minute,the drive letter of the usb in the VM has changed.""" additional = """I've found this bug https://bugzilla.redhat.com/show_bug.cgi?id=1254971, this is just to allow the chardev to be reconnected in time when it is disconnected. Can we make chardev reconnect without unpluging the usbredir device?"""