Re: [PATCH v11 09/10] virtio-iommu: Set supported page size mask

2020-11-03 Thread Peter Xu
On Tue, Nov 03, 2020 at 05:32:34PM +0100, Jean-Philippe Brucker wrote: > > In summary: > > > > if (qdev_hotplug) { > > if ((new_mask & cur_mask) == cur_mask) { > > /* Superset of old mask; we're good. Keep the old mask since > > same */ > > return 0; > > That

Re: [PATCH v11 09/10] virtio-iommu: Set supported page size mask

2020-11-03 Thread Jean-Philippe Brucker
On Mon, Nov 02, 2020 at 05:47:25PM -0500, Peter Xu wrote: > On Fri, Oct 30, 2020 at 07:05:09PM +0100, Jean-Philippe Brucker wrote: > > From: Bharat Bhushan > > > > The virtio-iommu device can deal with arbitrary page sizes for virtual > > endpoints, but for endpoints assigned with VFIO it must fo

Re: [PATCH v11 09/10] virtio-iommu: Set supported page size mask

2020-11-02 Thread Peter Xu
On Fri, Oct 30, 2020 at 07:05:09PM +0100, Jean-Philippe Brucker wrote: > From: Bharat Bhushan > > The virtio-iommu device can deal with arbitrary page sizes for virtual > endpoints, but for endpoints assigned with VFIO it must follow the page > granule used by the host IOMMU driver. > > Implemen

[PATCH v11 09/10] virtio-iommu: Set supported page size mask

2020-10-30 Thread Jean-Philippe Brucker
From: Bharat Bhushan The virtio-iommu device can deal with arbitrary page sizes for virtual endpoints, but for endpoints assigned with VFIO it must follow the page granule used by the host IOMMU driver. Implement the interface to set the vIOMMU page size mask, called by VFIO for each endpoint. W