[PATCH v2] target/arm: Fix CNTPCT_EL0 trapping from EL0 when HCR_EL2.E2H is 0

2023-09-28 Thread Michal Orzel
quot; from EL0 case and fall through to EL1 case, given that after fixing checking for the correct bit, the handling is the same. Fixes: 5bc8437136fb ("target/arm: Update timer access for VHE") Signed-off-by: Michal Orzel --- This is now in conformance to ARM ARM CNTPCT_EL0 pseudocode:

Re: [PATCH] target/arm: Fix CNTPCT_EL0 trapping from EL0 when HCR_EL2.E2H is 0

2023-09-28 Thread Michal Orzel
Hi, On 27/09/2023 17:49, Peter Maydell wrote: > > > On Fri, 22 Sept 2023 at 14:21, Michal Orzel wrote: >> >> On an attempt to access CNTPCT_EL0 from EL0 using a guest running on top >> of Xen, a trap from EL2 was observed which is something not reproducible >&g

[PATCH] target/arm: Fix CNTPCT_EL0 trapping from EL0 when HCR_EL2.E2H is 0

2023-09-22 Thread Michal Orzel
comment referring to incorrect bit name. Fixes: 5bc8437136fb ("target/arm: Update timer access for VHE") Signed-off-by: Michal Orzel --- This is now in conformance to ARM ARM CNTPCT_EL0 pseudocode: if PSTATE.EL == EL0 then ... elif EL2Enabled() && HCR_EL2.E2H == '0' &