From nobody Mon Jun 8 03:20:29 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 4825240629D; Thu, 4 Jun 2026 09:08:03 +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=1780564084; cv=none; b=fbjAkH0jpdaYKLVekRRg9RoPwpotOzsn1sFd5/+Qjf38h1uvE0jf7A+aGVV0+oq8EkInF6IRV5/80vYGRdMkKcIsGyRch2NNfsrIub84B1To6H5gMOlNzf2Y5KF2sQ0rr7dZFTtrTYBXnDYmuv1ofNyNpqiQk+NhSJ71ejZ1evU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780564084; c=relaxed/simple; bh=azrbaA53IKBkQt5baKmWDKH1lS3fzFAkL5pvKDVT/9o=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=X4ovCI2+wtlz7qcw8zpCZPFqX5hrHQkizUN9hU732qGYu2V0mnwv68cKi+liGZVPXMJFGEE/bsUje4smOj+LXJXXmMlL3RnI6ih4zN/VxZMR+GM+RaOqOK+pixuh/ZqbJMQ+93LY5Syqu2JJq0eAZ9VJ7/E5/UlejNuMUo1Z8aQ= 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=uZLxowrZ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jGyExFa8; 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="uZLxowrZ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jGyExFa8" Date: Thu, 04 Jun 2026 09:08:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780564082; 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=Cx5AU5XB52/l0fUtD8L0hYQWOFxeLebTjxYTpePc7+w=; b=uZLxowrZl+opc4k1dqKACSyNNk7008l5blKEnu0PCyyXrpB6MmIRnU+KzmJ3L8uVVEWVDM ngoq9tFZEDlPm1/Z7C+DxXkZLqymBRLdKJqvgCSvi+fVTLb/djOCVyD3eNVgXzBJEl2qrr EQzKcW7VD+WD9WFyGuupVsrn527xorijaaFr0AXNc/pTtC5XSHX7adiB1RYQtLb7ocKM+L FXxYZUbDAy6Q+5BSOmJ8bqIxwVT3o/D2TZ+IpEZU4XN08vJUBnWUrJjx/zLG6aEg0Me+1w ajpF3kBKu5SPgCAxzw99K67AKmdo65a3J0kMy/bPqMV2vpSonL9Iqeyvf0kvBA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780564082; 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=Cx5AU5XB52/l0fUtD8L0hYQWOFxeLebTjxYTpePc7+w=; b=jGyExFa8JFO/pqCMTSOgG7mFm/iLSufj6aGCRih/LuH75fgoQQsRz79RJSx+mhd04fH/rx 7aDQH3ZKJAgOR+Dw== 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 snapshot CLOCK_REALTIME Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , thomas.weissschuh@linutronix.de, Jacob Keller , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.225399927@kernel.org> References: <20260529195557.225399927@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178056408061.710.3822102009777212400.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: 744f8406a3d197b8e466d1ab09c4c3b8de8d65ea Gitweb: https://git.kernel.org/tip/744f8406a3d197b8e466d1ab09c4c3b8d= e8d65ea Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:12 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 04 Jun 2026 11:04:16 +02:00 KVM: arm64: Use ktime_get_snapshot_id() to snapshot CLOCK_REALTIME 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 usage in kvm_get_ptp_time() 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 Link: https://patch.msgid.link/20260529195557.225399927@kernel.org --- arch/arm64/kvm/hypercalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kvm/hypercalls.c b/arch/arm64/kvm/hypercalls.c index 58c5fe7..b11b882 100644 --- a/arch/arm64/kvm/hypercalls.c +++ b/arch/arm64/kvm/hypercalls.c @@ -28,7 +28,7 @@ static void kvm_ptp_get_time(struct kvm_vcpu *vcpu, u64 *= val) * system time and counter value must captured at the same * time to keep consistency and precision. */ - ktime_get_snapshot(&systime_snapshot); + ktime_get_snapshot_id(CLOCK_REALTIME, &systime_snapshot); =20 /* * This is only valid if the current clocksource is the @@ -61,8 +61,8 @@ static void kvm_ptp_get_time(struct kvm_vcpu *vcpu, u64 *= val) * in the future (about 292 years from 1970, and at that stage * nobody will give a damn about it). */ - val[0] =3D upper_32_bits(systime_snapshot.real); - val[1] =3D lower_32_bits(systime_snapshot.real); + val[0] =3D upper_32_bits(systime_snapshot.systime); + val[1] =3D lower_32_bits(systime_snapshot.systime); val[2] =3D upper_32_bits(cycles); val[3] =3D lower_32_bits(cycles); }