[PATCH v6 02/10] iommu/vt-d: Add custom allocator for IOASID

Jacob Pan jacob.jun.pan at linux.intel.com
Wed Oct 23 23:04:03 UTC 2019


On Tue, 22 Oct 2019 21:04:00 -0700
Jacob Pan <jacob.jun.pan at linux.intel.com> wrote:

> > > +		if (cap_caching_mode(iommu->cap) &&
> > > sm_supported(iommu)) {    
> > 
> > do you need to check against cap_caching_mode() or ecap_vcmd?
> >   
> I guess ecap_vcmd() will suffice. Kind of redundant.
Actually, we can check vcmd and vcmd_pasid here, then we dont need to
check it on every alloc/free calls.

Thanks,

Jacob


More information about the iommu mailing list