From nobody Mon Jun 8 03:19:35 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 7A8443FD152; Thu, 4 Jun 2026 09:08:04 +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=1780564085; cv=none; b=mHrvlIh92Clkfi4INSLjsJtc10Caob1F2HQxXrLez7ZcerOoJerKXDetuHCY7EXWGYOskMjrfq07W/MKsXRJII/LaXAa82r1gM1LTr/NBzg7hxJtI/AV6avQ+NngyVWD7K7avBvxt8fquXFaD8UdQ/r0C1OBxrnvBbE8SrMTPJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780564085; c=relaxed/simple; bh=mw5xQPsNvLSha29yezhM/yPaSC+xa4vQdoql56DF58g=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=fO/Hb+8Ftt1vZ8f/iZvNbu+OcrvtLeFpgg75LjosQ0O9kdDmvcaJe+3/vOm0uD5/5+Fo4ZPaIcN8tj2eY7XpEUf1SjP5fnN85tcrAEzM1WMvxB5L+qGIx+fHh7MPhYbk6aR7nWsgpUZXMrOiFu1MT0WdtOSOHOkTJu3LeJiHvaQ= 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=4ID/AISR; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=O4dQrd4q; 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="4ID/AISR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="O4dQrd4q" Date: Thu, 04 Jun 2026 09:08:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780564083; 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=fNgG1Bk+2kauKsIHkXXkD+2G4UkkOcEyq4GatreAOko=; b=4ID/AISRGME1rIBmvhGl1zow9d7aWd7gxQSa81+mmL9g01KJ9ukzc/Fl2jaHc0aJqHAQLX QSoDbcCCaOynzuY3MKCiO/y28I5K/+kPIHjALeoFUUVdiWD25+QhJ3k1+1qU/F6rEUA2n/ kqcrqMraTeOEKMkUrRZrZkVniyCviJOeJF0nRzj9044K0ecxwM/GWCSJrjutJQss01NTXL fqFDh1m4TILdx1cztZQfYSqVNzzfCxOBIowKn26Hinw3zRfh/pkguE2A2LOt7zp1iytzTQ V3BRehTvmBX+1owdFr88Uq3OahnMhGvuIRNqKSsiIuTfwIwzyQVLE9xmu9z1aQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780564083; 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=fNgG1Bk+2kauKsIHkXXkD+2G4UkkOcEyq4GatreAOko=; b=O4dQrd4qU0KXDZtauMC1OOB6x7iOngamyjBwCTO9NHEwzPrKKdsXLWMHdEEk3OBbKAiXw4 zHv49RkdOWdFJaDg== 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: <178056408186.710.3723620260406880210.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: ed645be2ab1bcbc0e27242c7316fc15475962333 Gitweb: https://git.kernel.org/tip/ed645be2ab1bcbc0e27242c7316fc1547= 5962333 Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:08 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 04 Jun 2026 11:04:16 +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..822ce32 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(CLOCK_BOOTTIME, &snap); =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