Re: [PATCH v1 4/6] dma-buf: Acquire wait-wound context on attachment

2022-07-14 Thread Christian König via Virtualization
Am 15.07.22 um 02:52 schrieb Dmitry Osipenko: Intel i915 GPU driver uses wait-wound mutex to lock multiple GEMs on the attachment to the i915 dma-buf. In order to let all drivers utilize shared wait-wound context during attachment in a general way, make dma-buf core to acquire the ww context inte

Re: [PATCH 2/2] vhost scsi: Allow user to control num virtqueues

2022-07-14 Thread Jason Wang
在 2022/7/8 11:05, Mike Christie 写道: We are currently hard coded to always create 128 IO virtqueues, so this adds a modparam to control it. For large systems where we are ok with using memory for virtqueues it allows us to add up to 1024. This limit was just selected becuase that's qemu's limit.

Re: [PATCH] iommu/virtio: Advertise IOMMU_CAP_CACHE_COHERENCY

2022-07-14 Thread Robin Murphy
On 2022-07-14 14:00, Jean-Philippe Brucker wrote: On Thu, Jul 14, 2022 at 01:01:37PM +0100, Robin Murphy wrote: On 2022-07-14 12:11, Jean-Philippe Brucker wrote: Fix virtio-iommu interaction with VFIO, as VFIO now requires IOMMU_CAP_CACHE_COHERENCY. virtio-iommu does not support non-cacheable m

Re: [PATCH v4 1/1] Create debugfs file with virtio balloon usage information

2022-07-14 Thread David Hildenbrand
On 14.07.22 15:20, Alexander Atanasov wrote: > Hello, > > On 14/07/2022 14:35, David Hildenbrand wrote: >> On 05.07.22 10:36, Alexander Atanasov wrote: >>> Allow the guest to know how much it is ballooned by the host. >>> It is useful when debugging out of memory conditions. >>> >>> When host gets

Re: [PATCH] iommu/virtio: Advertise IOMMU_CAP_CACHE_COHERENCY

2022-07-14 Thread Jean-Philippe Brucker
On Thu, Jul 14, 2022 at 01:01:37PM +0100, Robin Murphy wrote: > On 2022-07-14 12:11, Jean-Philippe Brucker wrote: > > Fix virtio-iommu interaction with VFIO, as VFIO now requires > > IOMMU_CAP_CACHE_COHERENCY. virtio-iommu does not support non-cacheable > > mappings, and always expects to be called

Re: [PATCH] iommu/virtio: Advertise IOMMU_CAP_CACHE_COHERENCY

2022-07-14 Thread Robin Murphy
On 2022-07-14 12:11, Jean-Philippe Brucker wrote: Fix virtio-iommu interaction with VFIO, as VFIO now requires IOMMU_CAP_CACHE_COHERENCY. virtio-iommu does not support non-cacheable mappings, and always expects to be called with IOMMU_CACHE. Can we know this is actually true though? What if the

Re: [PATCH v4 1/1] Create debugfs file with virtio balloon usage information

2022-07-14 Thread David Hildenbrand
On 05.07.22 10:36, Alexander Atanasov wrote: > Allow the guest to know how much it is ballooned by the host. > It is useful when debugging out of memory conditions. > > When host gets back memory from the guest it is accounted > as used memory in the guest but the guest have no way to know > how m

[PATCH] iommu/virtio: Advertise IOMMU_CAP_CACHE_COHERENCY

2022-07-14 Thread Jean-Philippe Brucker
Fix virtio-iommu interaction with VFIO, as VFIO now requires IOMMU_CAP_CACHE_COHERENCY. virtio-iommu does not support non-cacheable mappings, and always expects to be called with IOMMU_CACHE. Fixes: e8ae0e140c05 ("vfio: Require that devices support DMA cache coherence") Signed-off-by: Jean-Philipp