[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160308.145748.1648298790157991002.davem@davemloft.net>
Date: Tue, 08 Mar 2016 14:57:48 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: khalid.aziz@...cle.com
Cc: dave.hansen@...ux.intel.com, luto@...capital.net,
rob.gardner@...cle.com, corbet@....net, akpm@...ux-foundation.org,
dingel@...ux.vnet.ibm.com, zhenzhang.zhang@...wei.com,
bob.picco@...cle.com, kirill.shutemov@...ux.intel.com,
aneesh.kumar@...ux.vnet.ibm.com, aarcange@...hat.com,
arnd@...db.de, sparclinux@...r.kernel.org, mhocko@...e.cz,
chris.hyser@...cle.com, richard@....at, vbabka@...e.cz,
koct9i@...il.com, oleg@...hat.com, gthelen@...gle.com,
jack@...e.cz, xiexiuqi@...wei.com, Vineet.Gupta1@...opsys.com,
luto@...nel.org, ebiederm@...ssion.com, bsegall@...gle.com,
geert@...ux-m68k.org, dave@...olabs.net, adobriyan@...il.com,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linux-arch@...r.kernel.org,
linux-api@...r.kernel.org
Subject: Re: [PATCH v2] sparc64: Add support for Application Data Integrity
(ADI)
From: Khalid Aziz <khalid.aziz@...cle.com>
Date: Mon, 7 Mar 2016 14:06:43 -0700
> Good questions. Isn't set of valid VAs already constrained by VA_BITS
> (set to 44 in arch/sparc/include/asm/processor_64.h)? As I see it we
> are already not using the top 4 bits. Please correct me if I am wrong.
Another limiting constraint is the number of address bits coverable by
the 4-level page tables we use. And this is sign extended so we have
a top-half and a bottom-half with a "hole" in the center of the VA
space.
I want some clarification on the top bits during ADI accesses.
If ADI is enabled, then the top bits of the virtual address are
intepreted as tag bits. Once "verified" with the ADI settings, what
happense to these tag bits? Are they dropped from the virtual address
before being passed down the TLB et al. for translations?
If not, then this means you have to map ADI memory to the correct
location so that the tags match up.
And if that's the case, if you really wanted to mix tags within a
single page, you'd have to map that page several times, once for each
and every cacheline granular tag you'd like to use within that page.
Powered by blists - more mailing lists