Re: [PATCH 3/3] KVM: arm64: Warn if accessing timer pending state outside of vcpu context

2022-06-02 Thread Eric Auger
Hi Marc, On 6/2/22 10:30, Marc Zyngier wrote: > A recurrent bug in the KVM/arm64 code base consists in trying to > access the timer pending state outside of the vcpu context, which > makes zero sense (the pending state only exists when the vcpu > is loaded). > > In order to avoid more embarassing

[PATCH 3/3] KVM: arm64: Warn if accessing timer pending state outside of vcpu context

2022-06-02 Thread Marc Zyngier
A recurrent bug in the KVM/arm64 code base consists in trying to access the timer pending state outside of the vcpu context, which makes zero sense (the pending state only exists when the vcpu is loaded). In order to avoid more embarassing crashes and catch the offenders red-handed, add a warning