Re: how to detach vhost-user-blk

2022-02-12 Thread Jiatong Shen
hello, after some debugging, I am suspecting https://github.com/qemu/qemu/blob/b0ca999a43a22b38158a33d3f5881648bb4f/hw/block/vhost-user-blk.c#L376 this code creates a watcher which might not be released ( in 4.2.0), if I remove this line, looks like device_del + chardev-remove could correctly r

Re: how to detach vhost-user-blk

2022-02-09 Thread Jiatong Shen
Hello, I figured out I should have executed chardev-remove to disconnect unix socket connection. It actually works on qemu 6.2.0. but for qemu 4.2.0 even after delete chardev device, the connection is not disconnected, My current assumption is that char-socket object ref count is not 0 after connec

how to detach vhost-user-blk

2022-02-08 Thread Jiatong Shen
Hello community, I am testing vhost-user-blk. the virtual machine is started with the following command ./x86_64-softmmu/qemu-system-x86_64 \ --enable-kvm \ -smp 2 \ -chardev socket,id=chr-vu-virtio-disk0,path=/var/lib/nova/volume-04789a9b-21ce-4270-89bd-638700a0e56c,reconnect=10 \ -device vhos