search for: vhost_vdpa_alloc_domain

Displaying 7 results from an estimated 7 matches for "vhost_vdpa_alloc_domain".

2023 Mar 13
0
[PATCH 31/36] vhost-vdpa: vhost_vdpa_alloc_domain() should be using a const struct bus_type *
The function, vhost_vdpa_alloc_domain(), has a pointer to a struct bus_type, but it should be constant as the function it passes it to expects it to be const, and the vhost code does not modify it in any way. Cc: "Michael S. Tsirkin" <mst at redhat.com> Cc: Jason Wang <jasowang at redhat.com> Cc: kvm at vger.kern...
2023 Feb 16
0
[PATCH v2] vhost/vdpa: Add MSI translation tables to iommu for software-managed MSI
...v_msi_base); > + > + iommu_put_resv_regions(dma_dev, &dev_resv_regions); > + > + return ret; > +} As discussed in v1, I still prefer to factor out the common logic and move them to iommu.c. It helps to simplify the future bug fixing and enhancement. > + > static int vhost_vdpa_alloc_domain(struct vhost_vdpa *v) > { > struct vdpa_device *vdpa = v->vdpa; > @@ -1128,11 +1174,16 @@ static int vhost_vdpa_alloc_domain(struct vhost_vdpa *v) > > ret = iommu_attach_device(v->domain, dma_dev); > if (ret) > - goto err_attach; > + goto err_alloc_doma...
2023 Mar 10
0
[PATCH] vhost-vdpa: cleanup memory maps when closing vdpa fds
...> For iommu mapping, it should be freed by vhost_vdpa_free_domain() in > > > > vhost_vdpa_release()? > > > > > > > > > > Please consider the following lifecycle of the vdpa device: > > > > > > 1. vhost_vdpa_open > > > vhost_vdpa_alloc_domain > > > > > > 2. vhost_vdpa_pa_map > > > pin_user_pages > > > vhost_vdpa_map > > > iommu_map > > > > > > 3. kill QEMU > > > > > > 4. vhost_vdpa_release > > > vhost_vdpa_free_domain &...
2023 Feb 21
2
[GIT PULL] virtio,vhost,vdpa: features, fixes
...f-by: Michael S. Tsirkin <mst at redhat.com> ---------------------------------------------------------------- Alvaro Karsz (4): PCI: Add SolidRun vendor ID PCI: Avoid FLR for SolidRun SNET DPU rev 1 virtio: vdpa: new SolidNET DPU driver. vhost-vdpa: print warning when vhost_vdpa_alloc_domain fails Bagas Sanjaya (3): docs: driver-api: virtio: parenthesize external reference targets docs: driver-api: virtio: slightly reword virtqueues allocation paragraph docs: driver-api: virtio: commentize spec version checking Bo Liu (1): vhost-scsi: convert sysfs snprintf an...
2023 Feb 23
1
[GIT PULL] virtio,vhost,vdpa: features, fixes
...e up? Pls let me know and maybe I can fix it up before the merge window closes. Thanks! > Alvaro Karsz (4): > PCI: Add SolidRun vendor ID > PCI: Avoid FLR for SolidRun SNET DPU rev 1 > virtio: vdpa: new SolidNET DPU driver. > vhost-vdpa: print warning when vhost_vdpa_alloc_domain fails > > Bagas Sanjaya (3): > docs: driver-api: virtio: parenthesize external reference targets > docs: driver-api: virtio: slightly reword virtqueues allocation paragraph > docs: driver-api: virtio: commentize spec version checking > > Bo Liu (1): >...
2020 Sep 24
30
[RFC PATCH 00/24] Control VQ support in vDPA
Hi All: This series tries to add the support for control virtqueue in vDPA. Control virtqueue is used by networking device for accepting various commands from the driver. It's a must to support multiqueue and other configurations. When used by vhost-vDPA bus driver for VM, the control virtqueue should be shadowed via userspace VMM (Qemu) instead of being assigned directly to Guest. This is
2020 Sep 24
30
[RFC PATCH 00/24] Control VQ support in vDPA
Hi All: This series tries to add the support for control virtqueue in vDPA. Control virtqueue is used by networking device for accepting various commands from the driver. It's a must to support multiqueue and other configurations. When used by vhost-vDPA bus driver for VM, the control virtqueue should be shadowed via userspace VMM (Qemu) instead of being assigned directly to Guest. This is