Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)
From: Dave Hansen
Date: Wed Jan 04 2017 - 19:04:42 EST
On 01/04/2017 03:58 PM, Khalid Aziz wrote:
>> How does this all work with large pages?
>
> It works with large pages the same way as normal sized pages. The TTE
> for a large page also will have the mcd bit set in it and tags are set
> and referenced the same way.
But does the user setting the tags need to know what the page size is?
What if two different small pages have different tags and khugepaged
comes along and tries to collapse them? Will the page be split if a
user attempts to set two different tags inside two different small-page
portions of a single THP?