[PATCH] arm64: Force the use of CNTVCT_EL0 in __delay()
Will Deacon
will at kernel.org
Thu Feb 19 05:27:13 PST 2026
On Fri, 13 Feb 2026 14:16:19 +0000, Marc Zyngier wrote:
> Quentin forwards a report from Hyesoo Yu, describing an interesting
> problem with the use of WFxT in __delay() when a vcpu is loaded and
> that KVM is *not* in VHE mode (either nVHE or hVHE).
>
> In this case, CNTVOFF_EL2 is set to a non-zero value to reflect the
> state of the guest virtual counter. At the same time, __delay() is
> using get_cycles() to read the counter value, which is indirected to
> reading CNTPCT_EL0.
>
> [...]
Applied to arm64 (for-next/core), thanks!
[1/1] arm64: Force the use of CNTVCT_EL0 in __delay()
https://git.kernel.org/arm64/c/29cc0f3aa7c6
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list