From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 625EAC30658 for ; Tue, 2 Jul 2024 18:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:References:In-Reply-To:Subject:CC:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RJSqylBZlzW9UDCHCqo3Xfdt29Ffczco70FXx734zXo=; b=VntUJBAjpeRyW1LYG3LdtMR6Vq cUUUGFrSFDStBu0Kdz9iEEvAYgL6IQjTQDF5BdYLv+5lLFePlnoc+KaI+NuMAzQclTJ1/MdkAYlb7 Q26xgmUVkd2XK7W6nJDuVoqL8Q1VvkkvDm2ZDV5at08m3A+cwsjtjygBXysAf63O8B8hD/n/5bR70 tMCjRmce5XPgu8fv8b0FYnpsWfKpcGIdLVTzUq5Spe4qh907Up/hebnWKKqGuX2u7uUy3MxRH3hWx YsaiffRZWuKY/8GZIUbx6Evvngh6n5M6PSAMp1DrcXJQLUbr8qeSEKqS1LqCqS4AzC/D58BSHpjen B/5TtPbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOiQS-00000007eOq-1wsn; Tue, 02 Jul 2024 18:40:24 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOiQH-00000007eO9-1kRM for linux-arm-kernel@bombadil.infradead.org; Tue, 02 Jul 2024 18:40:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-ID:References:In-Reply-To:Subject:CC:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=RJSqylBZlzW9UDCHCqo3Xfdt29Ffczco70FXx734zXo=; b=W8u3i889blo/jC1uilhFu/Yv9K DQ9k2/5RYKE9bFhzWgXt+qmRVEYimUpcIzTQorHpZTs0sI+Wuw9P7Y9PKvMWZy7Hyt+1ku1VT3L4j zigvimNVllEcFg+TAavc51UyH6hvMn5lWe7yyv/WCORZItTjkvmM+ible75PooH827bgjsC3/HBzY DxFtxU+Nl4iICPDA/17ID9pxbpRhuTxgAZjT7ZiSwSySjsRuQMugzG6eSy/oUKFrjqf3pXeBiJsGR ywLBRO+CmelMGec+Q/a6G+Lp5eow6Xtl6Ei4AfGmU79ts4I4BYyE0s0VInEBotHZ770lYW+Q+HD8l EGHkoTbQ==; Received: from [2a00:23ee:2318:7901:3188:7b97:6ee:f783] (helo=[IPv6:::1]) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOiQ9-00000009rA4-2tiF; Tue, 02 Jul 2024 18:40:06 +0000 Date: Tue, 02 Jul 2024 19:40:04 +0100 From: David Woodhouse To: Peter Hilber , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, "Ridoux, Julien" , virtio-dev@lists.linux.dev, "Luu, Ryan" CC: "Christopher S. Hall" , Jason Wang , John Stultz , "Michael S. Tsirkin" , netdev@vger.kernel.org, Richard Cochran , Stephen Boyd , Thomas Gleixner , Xuan Zhuo , Marc Zyngier , Mark Rutland , Daniel Lezcano , Alessandro Zummo , Alexandre Belloni Subject: Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support User-Agent: K-9 Mail for Android In-Reply-To: <19c75212-bcb6-49e3-964d-ed727da2ba54@opensynergy.com> References: <20231218073849.35294-1-peter.hilber@opensynergy.com> <684eac07834699889fdb67be4cee09319c994a42.camel@infradead.org> <671a784b-234f-4be6-80bf-5135e257ed40@opensynergy.com> <4a0a240dffc21dde4d69179288547b945142259f.camel@infradead.org> <8d9d7ce2-4dd1-4f54-a468-79ef5970a708@opensynergy.com> <2de9275f-b344-4a76-897b-52d5f4bdca59@opensynergy.com> <51087cd7149ce576aa166d32d051592b146ce2c4.camel@infradead.org> <3707d99d0dfea45d05fd65f669132c2e546f35c6.camel@infradead.org> <19c75212-bcb6-49e3-964d-ed727da2ba54@opensynergy.com> Message-ID: <02E9F187-A38C-4D14-A287-AFD7503B6B0F@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SRS-Rewrite: SMTP reverse-path rewritten from by desiato.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2 July 2024 19:12:00 BST, Peter Hilber wrote: >On 02=2E07=2E24 18:39, David Woodhouse wrote: >> To clarify then, the main types are >>=20 >> VIRTIO_RTC_CLOCK_UTC =3D=3D 0 >> VIRTIO_RTC_CLOCK_TAI =3D=3D 1 >> VIRTIO_RTC_CLOCK_MONOTONIC =3D=3D 2 >> VIRTIO_RTC_CLOCK_SMEARED_UTC =3D=3D 3 >>=20 >> And the subtypes are *only* for the case of >> VIRTIO_RTC_CLOCK_SMEARED_UTC=2E They include >>=20 >> VIRTIO_RTC_SUBTYPE_STRICT >> VIRTIO_RTC_SUBTYPE_UNDEFINED /* or whatever you want to call it */ >> VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR=20 >> VIRTIO_RTC_SUBTYPE_UTC_SLS /* if it's worth doing this one */ >>=20 >> Is that what we just agreed on? >>=20 >>=20 > >This is a misunderstanding=2E My idea was that the main types are > >> VIRTIO_RTC_CLOCK_UTC =3D=3D 0 >> VIRTIO_RTC_CLOCK_TAI =3D=3D 1 >> VIRTIO_RTC_CLOCK_MONOTONIC =3D=3D 2 >> VIRTIO_RTC_CLOCK_SMEARED_UTC =3D=3D 3 > >VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC =3D=3D 4 > >The subtypes would be (1st for clocks other than >VIRTIO_RTC_CLOCK_SMEARED_UTC, 2nd to last for >VIRTIO_RTC_CLOCK_SMEARED_UTC): > >#define VIRTIO_RTC_SUBTYPE_STRICT 0 >#define VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR 1 >#define VIRTIO_RTC_SUBTYPE_SMEAR_UTC_SLS 2 > Thanks=2E I really do think that from the guest point of view there's real= ly no distinction between "maybe smeared" and "undefined smearing", and hav= e a preference for using the latter form, which is the key difference there= ? Again though, not a hill for me to die on=2E