RE: [PATCH 2/6] VT-d: split domid map cleanup check into a function

2021-11-14 Thread Tian, Kevin
> From: Jan Beulich > Sent: Friday, November 12, 2021 5:48 PM > > This logic will want invoking from elsewhere. > > Signed-off-by: Jan Beulich Reviewed-by: Kevin Tian > > --- a/xen/drivers/passthrough/vtd/iommu.c > +++ b/xen/drivers/passthrough/vtd/iommu.c > @@ -157,6 +157,51 @@ static void

Re: [PATCH 2/6] VT-d: split domid map cleanup check into a function

2021-11-12 Thread Roger Pau Monné
On Fri, Nov 12, 2021 at 10:48:19AM +0100, Jan Beulich wrote: > This logic will want invoking from elsewhere. > > Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Might be worth to explicitly note this is a non functional change. Thanks, Roger.

[PATCH 2/6] VT-d: split domid map cleanup check into a function

2021-11-12 Thread Jan Beulich
This logic will want invoking from elsewhere. Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -157,6 +157,51 @@ static void cleanup_domid_map(struct dom } } +static bool any_pdev_behind_iommu(const struct domain *d, +