From nobody Mon Jun 8 03:20:28 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 8067D3DB63D; Tue, 2 Jun 2026 09:46:15 +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=Aegp6mOgxbiv0ufbkEEEUw+at7/FuF7GaJsudlc2QWqExpfKNV5VFhG5YERnbEJs6odkf0hnIFgqxZjNO0vhi414EJ46B+BuVJAfEGzBiePg948+hG7l5ZAGIVz6Gm9rfwy27b1xhQsNbt4IbAl++T0D9CxPS3wzKCcpCVJQnB8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393577; c=relaxed/simple; bh=WSrFJlPOyNRDgnfx4g7Kt7BjN5QEIdNpjdAeHG4lths=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=hRJ0dS50jsYdhqpZ7fWTkuGZInlHxXqQYcAD1A9qzfWddsS+HA+hgNBwS4HWebIpX7jPBK1+aomwFyAnpbLa6BZhXJAD76I5htS0jJWJp7hOOkx02SDhohFvD1zMwBobYNdPWWBjEzODIYTwmKdi+6NGrsw/WuJVSDkX3r5ypCM= 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=B96bjzWh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=l85gUr8A; 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="B96bjzWh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="l85gUr8A" Date: Tue, 02 Jun 2026 09:46:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393573; 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=L3oEXoYFa7J/sJQDUedM6cVllKfJu+0lSVeJt0zNtpo=; b=B96bjzWhnh48MQOSnEVIvpbQWxXNzUAzp/hJCGdzcXx18IZY86hT0b6y5kYd0eUb0cneUu /nsrOwGLYb2kIyghRq9gGLSBzFMeXYqQPb/cCWgDAG/8YsEptsvFLhaBNx8jgz32ZLlB/P 28xsKKpyL7ECuy1Fzozca9To/hIuiEOdhmx98OdznkD4OkEWDfUrgQ484pUskazjDVQlI7 bdd43EfbqXnsenqy1c+miSLPcwvgafKQgGQEu2NJUOcZH+gSA6ZEIVMnVxAp3iH1m8bXVP CubWh2M/xJ8RTRkFZOVoaoNBzVvc1mEOzUwF01BXVCpatl00+LPwuInpE6eFaA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393573; 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=L3oEXoYFa7J/sJQDUedM6cVllKfJu+0lSVeJt0zNtpo=; b=l85gUr8ABRoxKKaX+X14O1R56U135VTfKetCu6BePpwofbJpWsrVr0FbaqNY4kTb71AVY/ lSFASmsPy5PPubBg== 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: <178039357206.2140988.2640042254237350302.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: 48efaad67a8d18b75512aa3ab5bbfe661866020f Gitweb: https://git.kernel.org/tip/48efaad67a8d18b75512aa3ab5bbfe661= 866020f Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:12 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:39:58 +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); }