On Tue, Oct 22, 2024 at 04:59:07PM +0800, Baolu Lu wrote:
Is it feasible to make vIOMMU object more generic, rather than strictlyWhy? The nested parent flavour of the domain is basically free to
tying it to nested translation? For example, a normal paging domain that
translates gPAs to hPAs could also have a vIOMMU object associated with
it.
While we can only support vIOMMU object allocation uAPI for S2 paging
domains in the context of this series, we could consider leaving the
option open to associate a vIOMMU object with other normal paging
domains that are not a nested parent?
create, what reason would be to not do that?
If the HW doesn't support it, then does the HW really need/support a
VIOMMU?
I suppose it could be made up to the driver, but for now I think we
should leave it as is in the core code requiring it until we have a
reason to relax it.