Re: [PATCH v2 00/19] iommufd: Add VIOMMU infrastructure (Part-1)

From: Jason Gunthorpe
Date: Tue Oct 01 2024 - 09:48:50 EST


On Sun, Sep 29, 2024 at 03:19:42PM +0800, Yi Liu wrote:
> > So their viommu HW concepts come along with a requirement that there
> > be a fixed translation for the VM, which we model by attaching a S2
> > HWPT to the VIOMMU object which get's linked into the IOMMU HW as
> > the translation for the queue memory.
>
> Is the mapping of the S2 be static? or it an be unmapped per userspace?

In principle it should be dynamic, but I think the vCMDQ stuff will
struggle to do that

Jason