Re: [PATCH v2] virtio-pci: correctly set virtio pci queue mem multiplier

2024-02-25 Thread Jason Wang
On Tue, Feb 20, 2024 at 3:41 PM Michael S. Tsirkin wrote: > > On Tue, Feb 20, 2024 at 12:39:35PM +0530, Srujana Challa wrote: > > Currently, virtio_pci_queue_mem_mult function always returns 4K > > when VIRTIO_PCI_FLAG_PAGE_PER_VQ is set. But this won't > > work for vhost vdpa when host has page

Re: [PATCH v2] virtio-pci: correctly set virtio pci queue mem multiplier

2024-02-19 Thread Michael S. Tsirkin
On Tue, Feb 20, 2024 at 12:39:35PM +0530, Srujana Challa wrote: > Currently, virtio_pci_queue_mem_mult function always returns 4K > when VIRTIO_PCI_FLAG_PAGE_PER_VQ is set. But this won't > work for vhost vdpa when host has page size other than 4K. > This patch introduces a new

[PATCH v2] virtio-pci: correctly set virtio pci queue mem multiplier

2024-02-19 Thread Srujana Challa
Currently, virtio_pci_queue_mem_mult function always returns 4K when VIRTIO_PCI_FLAG_PAGE_PER_VQ is set. But this won't work for vhost vdpa when host has page size other than 4K. This patch introduces a new property(page-per-vdpa-vq) for vdpa use case to fix the same. Signed-off-by: Srujana