Re: [PATCH] armv8: always use current exception level for TCR_ELx access

2022-06-07 Thread Andre Przywara
On Tue, 7 Jun 2022 19:45:14 +0200 (CEST) Mark Kettenis wrote: > > From: Andre Przywara > > Date: Tue, 7 Jun 2022 15:08:34 +0100 > > > > Currently get_tcr() takes an "el" parameter, to select the proper > > version of the TCR_ELx system register. > > This is problematic in case of the Apple M1,

Re: [PATCH] armv8: always use current exception level for TCR_ELx access

2022-06-07 Thread Mark Kettenis
> From: Andre Przywara > Date: Tue, 7 Jun 2022 15:08:34 +0100 > > Currently get_tcr() takes an "el" parameter, to select the proper > version of the TCR_ELx system register. > This is problematic in case of the Apple M1, since it runs with > HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using t