Re: [PATCH vhost v3 2/4] virtio_pci: fix the common cfg map size

2023-10-09 Thread Jason Wang
On Tue, Oct 10, 2023 at 11:11 AM Xuan Zhuo wrote: > > The function vp_modern_map_capability() takes the size parameter, > which corresponds to the size of virtio_pci_common_cfg. As a result, > this indicates the size of memory area to map. > > Now the size is the size of virtio_pci_common_cfg, but

[PATCH vhost v3 2/4] virtio_pci: fix the common cfg map size

2023-10-09 Thread Xuan Zhuo
The function vp_modern_map_capability() takes the size parameter, which corresponds to the size of virtio_pci_common_cfg. As a result, this indicates the size of memory area to map. Now the size is the size of virtio_pci_common_cfg, but some feature(such as the _F_RING_RESET) needs the virtio_pci_