On Mon, Nov 14, 2022 at 11:58:18AM +0800, Xuan Zhuo wrote:
Under the standard of Virtio 1.0, the initialization process of the device must first write sub-features back to device before using device, such as finding vqs.
There are four places using vp_find_vq().
- virtio-blk.pci: put the code of finalizing features in front of using device
- virtio-blk.mmio: put the code of finalizing features in front of using device
- virtio-scsi.pci: is ok
- virtio-scsi.mmio: add the code of finalizing features before vp_find_vq()
Link: https://www.mail-archive.com/qemu-devel@nongnu.org/msg920776.html Signed-off-by: Xuan Zhuo xuanzhuo@linux.alibaba.com
Reviewed-by: Gerd Hoffmann kraxel@redhat.com