On Thu, Sep 08, 2022 at 05:25:32PM +0100, Jean-Philippe Brucker wrote:
On Wed, Sep 07, 2022 at 02:33:11PM -0300, Jason Gunthorpe wrote:Yes, the owner stuff is a logical place to put that, when ownership
On Wed, Sep 07, 2022 at 10:54:54AM +0100, Jean-Philippe Brucker wrote:Yes (a) is probably better. The SMMU driver currently implements (c) to
Is iommu_domain still going to represent both a device context (wholeI think it must be (a), considering how everything is defined and the
PASID table) and individual address spaces, or are you planning to move
away from that? What happens when a driver does:
d1 = iommu_domain_alloc()
iommu_attach_device(d1)
d2 = iommu_sva_bind_device()
iommu_detach_device(d1)
Does detach
(a) only disable the non-PASID address space?
(b) disable everything?
(c) fail because the driver didn't unbind first?
needs for vIOMMU emulation.
ensure that you can't switch device driver without unbinding everything
first, and we should keep that check somewhere
is all released the PASID table of the group must be empty. Lu?