[lkml]   [2022]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/5] iommu/vt-d: Set SNP bit only in second-level page table entries
Hi Jason,

On 2022/5/2 21:05, Jason Gunthorpe wrote:
> On Sun, May 01, 2022 at 07:24:31PM +0800, Lu Baolu wrote:
>> The SNP bit is only valid for second-level PTEs. Setting this bit in the
>> first-level PTEs has no functional impact because the Intel IOMMU always
>> ignores the same bit in first-level PTEs. Anyway, let's check the page
>> table type before setting SNP bit in PTEs to make the code more readable.
> Shouldn't this be tested before setting force_snooping and not during
> every map?

The check is in the following patch. This just makes sure that SNP is
only set in second-level page table entries.

Best regards,

 \ /
  Last update: 2022-05-04 09:27    [W:2.961 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site