]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Add clock support to nVHE/pKVM hyp
authorVincent Donnefort <vdonnefort@google.com>
Mon, 9 Mar 2026 16:25:06 +0000 (16:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Mar 2026 08:51:16 +0000 (08:51 +0000)
commit405df5b55748d93d44666fd6005c60981094a077
tree6ab6eb6f9c8805d70a22672af955ef3146c926ae
parent9019e82c7e46c03c37e8b108473d02b543222d9f
KVM: arm64: Add clock support to nVHE/pKVM hyp

In preparation for supporting tracing from the nVHE hyp, add support to
generate timestamps with a clock fed by the CNTCVT counter. The clock
can be kept in sync with the kernel's by updating the slope values. This
will be done later.

As current we do only create a trace clock, make the whole support
dependent on the upcoming CONFIG_NVHE_EL2_TRACING.

Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260309162516.2623589-21-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/include/nvhe/clock.h [new file with mode: 0644]
arch/arm64/kvm/hyp/nvhe/Makefile
arch/arm64/kvm/hyp/nvhe/clock.c [new file with mode: 0644]