From nobody Mon Jun 8 03:20:50 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45D283D5647; Tue, 2 Jun 2026 09:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393577; cv=none; b=CGrmycJt3NjiJdUMSlfQvfWEIh/80/YcZDK/W4nReEgP2jEV6ULrXacu0TKZfQZFalrcpcPckCwV5mRSxHFed7nYrgfGHUJm7pHEJoac+ehwbRXG4cfWlcq9U5WdBbAF6DYt4J3mYa0a0MxP4hfURBZpjsRgqKXD5CdP/mF7pcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393577; c=relaxed/simple; bh=QVfatoTyeguMWomoIdnyDInlJ37kxY3E/JXEAR/xoVE=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=RHA10SiltgAwEJ86nvdkwuRt4TeLh4EwVi4kHtcruvuNuMqBaaY+bSQLpHtAPILLSJfPA20Z3SErWlkLoEmMVkDXwJ+E8Qxe3iAie5zvTWK48xED7Of79+jKvEAdRFVZZQmjtOw4mFKo9qGyPpeME1UeL9Gle2u1+R252QZT5ZM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kwBMTBW5; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xqFHfkAj; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kwBMTBW5"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xqFHfkAj" Date: Tue, 02 Jun 2026 09:46:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393574; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NvKi2w/RDDxbuZrydfjgs+B7ozMp7KWiD9BgTp669rI=; b=kwBMTBW506PS5/AmngQHwrhTGyIUlBA+hjpCsZMVZLpLmCixMkrkhEVM5iuM0nRgxCa7Cf ye9un5wLCSO1cZcjPi8p1ndZc5Cn3DT/+2/s2V3UN6jveoVL/LWCl/8o9JZzZbjBgNiIKI td+tbnuErDzx0/3UGnkXyua+aeEyZ9U/Ss4jU9g2mYD+76qmbKqH+4j8pmeptrWr9Ose/A IwbbiGtJQMO38S4lpXR//JnVi4PvUNo7PR3LDS8TmLo5wm9Z86pIwVAQMPBzWOWdgNMnVZ WP6GNKiPsO9lwpGWLxVM18BhnmpOhIgi9jVKg2ZTd7CKlwG3zKEnolLs2m2B5g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393574; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NvKi2w/RDDxbuZrydfjgs+B7ozMp7KWiD9BgTp669rI=; b=xqFHfkAjQGLlgEoioCqDh/RSgKFrUR3dQ7qSEAsAjflyJdy/FgJ9kQb5KP2wZrXz1aWK5B +Ah8GYyg5H0YkrBQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/ptp] KVM: arm64: Use ktime_get_snapshot_id() to retrieve CLOCK_BOOTTIME Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , thomas.weissschuh@linutronix.de, Jacob Keller , Marc Zyngier , Vincent Donnefort , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.174373054@kernel.org> References: <20260529195557.174373054@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178039357339.2140988.14096735224557177086.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/ptp branch of tip: Commit-ID: d09439210441efbadd8b0aa32c1ddb1eab2f3abd Gitweb: https://git.kernel.org/tip/d09439210441efbadd8b0aa32c1ddb1ea= b2f3abd Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:08 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:39:58 +02:00 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 Tested-by: Arthur Kiyanovski Reviewed-by: David Woodhouse Reviewed-by: Thomas Wei=C3=9Fschuh Reviewed-by: Jacob Keller Acked-by: Marc Zyngier Acked-by: Vincent Donnefort Link: https://patch.msgid.link/20260529195557.174373054@kernel.org --- arch/arm64/kvm/hyp_trace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/kvm/hyp_trace.c b/arch/arm64/kvm/hyp_trace.c index 8b7f2bf..b056c65 100644 --- a/arch/arm64/kvm/hyp_trace.c +++ b/arch/arm64/kvm/hyp_trace.c @@ -51,8 +51,8 @@ static void __hyp_clock_work(struct work_struct *work) =20 hyp_clock =3D container_of(dwork, struct hyp_trace_clock, work); =20 - ktime_get_snapshot(&snap); - boot =3D ktime_to_ns(snap.boot); + ktime_get_snapshot_id(CLOCK_BOOTTIME, &snap); + boot =3D ktime_to_ns(snap.systime); =20 delta_boot =3D boot - hyp_clock->boot; delta_cycles =3D snap.cycles - hyp_clock->cycles; @@ -118,9 +118,9 @@ static void hyp_trace_clock_enable(struct hyp_trace_clo= ck *hyp_clock, bool enabl hyp_clock->running =3D false; } =20 - ktime_get_snapshot(&snap); + ktime_get_snapshot_id(&snap, CLOCK_BOOTTIME); =20 - hyp_clock->boot =3D ktime_to_ns(snap.boot); + hyp_clock->boot =3D ktime_to_ns(snap.systime); hyp_clock->cycles =3D snap.cycles; hyp_clock->mult =3D 0; =20