|
Message-ID: <20160815105205.GD22320@e104818-lin.cambridge.arm.com> Date: Mon, 15 Aug 2016 11:52:06 +0100 From: Catalin Marinas <catalin.marinas@....com> To: Ard Biesheuvel <ard.biesheuvel@...aro.org> Cc: Will Deacon <will.deacon@....com>, Mark Rutland <mark.rutland@....com>, Kees Cook <keescook@...omium.org>, kernel-hardening@...ts.openwall.com, Julien Grall <julien.grall@....com>, James Morse <james.morse@....com>, "linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org> Subject: Re: [PATCH 0/7] arm64: Privileged Access Never using TTBR0_EL1 switching On Mon, Aug 15, 2016 at 12:43:31PM +0200, Ard Biesheuvel wrote: > But, how about we store the reserved ASID in TTBR1_EL1 instead, and > switch TCR_EL1.A1 and TCR_EL1.EPD0 in a single write? That way, we can > switch ASIDs and disable table walks atomically (I hope), and we > wouldn't need to change TTBR0_EL1 at all. I did this before for AArch32 + LPAE (patches on the list sometime last year I think). But the idea was nak'ed by the ARM architects. The TCR_EL1.A1 can be cached somewhere in the TLB state machine, so you need TLBI (IOW, toggling A1 does not guarantee an ASID switch). -- Catalin
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.