RE: [patch 21/32] NTB/msi: Convert to msi_on_each_desc()
From: Tian, Kevin
Date: Wed Sep 21 2022 - 03:57:20 EST
> From: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Sent: Tuesday, September 20, 2022 10:10 PM
>
> On Thu, Sep 15, 2022 at 09:24:07AM +0000, Tian, Kevin wrote:
>
> > After migration the IRTE index could change hence the addr/data pair
> > acquired before migration becomes stale and must be fixed.
>
> The migration has to keep this stuff stable somehow, it seems
> infeasible to fix it after the fact.
>
This is not how live migration typically works, i.e. we don't try to
freeze the same host resource cross migration. It's pretty fragile
and the chance of failure is high.
btw isn't it the same reason why we don't want to expose host
PASID into guest in iommufd discussion?
My overall impression is that any such exposure of host resource
requires certain guest cooperation to do after-the-fact fix to
enable migration (though it's obviously difficult for this interrupt
case), otherwise the actual usage would be very limited...