[PATCH v2] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}

2020-04-22 Thread Andrew Scull
Errata 1165522, 1319367 and 1530923 each allow TLB entries to be allocated as a result of a speculative AT instruction. In order to avoid mandating VHE on certain affected CPUs, apply the workaround to both the nVHE and the VHE case for all affected CPUs. Signed-off-by: Andrew Scull CC: Marc Zyng

Re: [PATCH v2] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}

2020-04-22 Thread Andrew Scull
On Wed, Apr 22, 2020 at 05:13:46PM +0100, Andrew Scull wrote: > * From v1 <20200327143941.195626-1-asc...@google.com>: > - Restored registers in VHE path > - RFC: Remove trust in host Woops, got a bit happy with my clipboard. That last point isn't included here as it didn't seem totally releva

Re: [PATCH v2] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}

2020-04-29 Thread Will Deacon
Hi Andrew, On Wed, Apr 22, 2020 at 05:13:46PM +0100, Andrew Scull wrote: > Errata 1165522, 1319367 and 1530923 each allow TLB entries to be > allocated as a result of a speculative AT instruction. In order to > avoid mandating VHE on certain affected CPUs, apply the workaround to > both the nVHE a

Re: [PATCH v2] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}

2020-04-30 Thread Marc Zyngier
On 2020-04-29 22:21, Will Deacon wrote: Hi Andrew, On Wed, Apr 22, 2020 at 05:13:46PM +0100, Andrew Scull wrote: Errata 1165522, 1319367 and 1530923 each allow TLB entries to be allocated as a result of a speculative AT instruction. In order to avoid mandating VHE on certain affected CPUs, appl

Re: [PATCH v2] arm64: Unify WORKAROUND_SPECULATIVE_AT_{NVHE,VHE}

2020-04-30 Thread Andrew Scull
On Thu, Apr 30, 2020 at 10:16:03AM +0100, Marc Zyngier wrote: > On 2020-04-29 22:21, Will Deacon wrote: > > Hi Andrew, > > > > On Wed, Apr 22, 2020 at 05:13:46PM +0100, Andrew Scull wrote: > > > Errata 1165522, 1319367 and 1530923 each allow TLB entries to be > > > allocated as a result of a specu