]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Use ktime_get_snapshot_id() to retrieve CLOCK_BOOTTIME
authorThomas Gleixner <tglx@kernel.org>
Fri, 29 May 2026 20:00:08 +0000 (22:00 +0200)
committerThomas Gleixner <tglx@kernel.org>
Thu, 4 Jun 2026 09:04:16 +0000 (11:04 +0200)
commited645be2ab1bcbc0e27242c7316fc15475962333
tree5b43be56e2b304857b859113eaa9b4371f9e3ac3
parentd5becddf8a0f18bcc18129efa086530b5263c6b4
KVM: arm64: Use ktime_get_snapshot_id() to retrieve CLOCK_BOOTTIME

ktime_get_snapshot() is replaced by ktime_get_snapshot_id() which allows to
request a particular CLOCK ID to be captured along with the clocksource
counter.

Convert the tracing mechanism over and use the new
system_time_snapshot::systime field, which holds the system timestamp
selected by the CLOCK ID argument.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Arthur Kiyanovski <akiyano@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260529195557.174373054@kernel.org
arch/arm64/kvm/hyp_trace.c