Re: [PATCH] iommu: intel: remove flooding of non-error logs, when new-DMA-PTE is the same as old-DMA-PTE.

From: Alex Williamson
Date: Mon Oct 04 2021 - 18:31:53 EST


On Sat, 2 Oct 2021 22:48:24 +0530
Ajay Garg <ajaygargnsit@xxxxxxxxx> wrote:

> Thanks Lu for the reply.
>
> >
> > Isn't the domain should be switched from a default domain to an
> > unmanaged domain when the device is assigned to the guest?
> >
> > Even you want to r-setup the same mappings, you need to un-map all
> > existing mappings, right?
> >
>
> Hmm, I guess that's a (design) decision the KVM/QEMU/VFIO communities
> need to take.
> May be the patch could suppress the flooding till then?

No, this is wrong. The pte values should not exist, it doesn't matter
that they're the same. Is the host driver failing to remove mappings
and somehow they persist in the new vfio owned domain? There's
definitely a bug beyond logging going on here. Thanks,

Alex