On 11/19/25 16:24, Wafer Xie wrote:
When stopping a vhost-vdpa device, only the first queue pair is marked as suspended, while the remaining queues are not updated to the suspended state. As a result, when stopping a multi-queue vhost-vdpa device, the following error message will be printed.qemu-system-x86_64:vhost VQ 2 ring restore failed: -1: Operation not permitted (1) qemu-system-x86_64:vhost VQ 3 ring restore failed: -1: Operation not permitted (1) So move v->suspended to v->shared, and then all the vhost_vdpa devices cannot have different suspended states. Fixes: 0bb302a9960a ("vdpa: add vhost_vdpa_suspend")
Is it a qemu-stable material? To me it feels like it is. (for 10.0.x, it needed small context fix due to missing v10.0.0-1280-g494c50dcc099 "vdpa: move memory listener register to vhost_vdpa_init") Please let me know if it isn't. Thanks, /mjt
