Re: [PATCH 1/2] virtio_pci: fix the common map size and add check for vq-reset

2023-10-07 Thread Jason Wang
On Mon, Sep 25, 2023 at 11:58 AM Xuan Zhuo wrote: > > Now, the function vp_modern_map_capability() takes the size parameter, > which corresponds to the size of virtio_pci_common_cfg. As a result, the > pci_iomap_range() function maps the memory area for > virtio_pci_common_cfg. > > However, if the

[PATCH 1/2] virtio_pci: fix the common map size and add check for vq-reset

2023-09-24 Thread Xuan Zhuo
Now, the function vp_modern_map_capability() takes the size parameter, which corresponds to the size of virtio_pci_common_cfg. As a result, the pci_iomap_range() function maps the memory area for virtio_pci_common_cfg. However, if the _F_RING_RESET is negotiated, the extra items will be used. Ther