Hey Lu,
On 8 Mar 2019, at 03:09, Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx> wrote:This seems like a good idea, but as domain alloc is only called for the
Here attached three extra patches which I think should be added beforeSure, sounds good. Iâll fixup patch 3 and have a go at integrating
Do you mind if I work on top of your patches for further cleanups and
sign off a v2 together with you?
iommu_prepare_isa into get_resv_regions. This should make the initial
domain logic here quite concise.
PATCH 3/4, and some further cleanup changes which you can merge with
PATCH 4/4.
----------------
0006-iommu-Add-ops-entry-for-vendor-specific-default-doma.patch
0007-iommu-vt-d-Add-is_identity_map-ops-entry.patch
These two patches aim to add a generic method for vendor specific iommu
drivers to specify the type of the default domain for a device. Intel
iommu driver will register an ops for this since it already has its own
identity map adjudicator for a long time.
default domain on first device attached to a group, we may miss checking
whether a device added later should have an identity domain. Should there
be paths to downgrade a groups domain if one of the devices requires one?