On 2025/03/13 19:13, Peter Maydell wrote:
On Thu, 13 Mar 2025 at 07:16, Akihiko Odaki <akihiko.od...@daynix.com> wrote:
PMCNTENCLR_EL0 and PMINTENCLR_EL1 clears written bits so we need an
alternative raw write functions, which will be used to copy KVM kernel
coprocessor state into userspace.
Signed-off-by: Akihiko Odaki <akihiko.od...@daynix.com>
Nice catch. Did you find this because it caused a visible
problem/bug, or was it just code inspection?
I found GDB always says PMCNTENSET_EL0 and PMCNTENCLR_EL0 are zero
regardless of the actual value. This is because the value gets cleared
when PMCNTENCLR_EL0 is written back from KVM.
Regards,
Akihiko Odaki
thanks
-- PMM