[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191217104535.GB28651@suse.de>
Date: Tue, 17 Dec 2019 11:45:35 +0100
From: Joerg Roedel <jroedel@...e.de>
To: Lu Baolu <baolu.lu@...ux.intel.com>
Cc: Jerry Snitselaar <jsnitsel@...hat.com>,
linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org,
stable@...r.kernel.org
Subject: Re: [PATCH] iommu: set group default domain before creating direct
mappings
On Wed, Dec 11, 2019 at 08:54:21AM +0800, Lu Baolu wrote:
> On 12/11/19 2:56 AM, Jerry Snitselaar wrote:
> > iommu_group_create_direct_mappings uses group->default_domain, but
> > right after it is called, request_default_domain_for_dev calls
> > iommu_domain_free for the default domain, and sets the group default
> > domain to a different domain. Move the
> > iommu_group_create_direct_mappings call to after the group default
> > domain is set, so the direct mappings get associated with that domain.
> >
> > Cc: Joerg Roedel <jroedel@...e.de>
> > Cc: Lu Baolu <baolu.lu@...ux.intel.com>
>
> This fix looks good to me.
>
> Reviewed-by: Lu Baolu <baolu.lu@...ux.intel.com>
Applied, thanks.
Powered by blists - more mailing lists