Re: [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2025-01-06 Thread Peter Hilber
On Thu, Jan 02, 2025 at 08:21:11AM -0800, Richard Cochran wrote: > On Thu, Jan 02, 2025 at 05:11:01PM +0100, Peter Hilber wrote: > > For sure. But the aim of this proposal is to have an interoperable time > > synchronization solution for VMs through a Virtio device. So the idea is > > to include me

Re: [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2025-01-02 Thread Richard Cochran
On Thu, Jan 02, 2025 at 05:11:01PM +0100, Peter Hilber wrote: > Would it be more acceptable to just announce leap seconds, but not > whether to smear? Up until now, leap second announcements were handled in user space, and the kernel played no role. > I do not understand. Is the point that guests

Re: [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2025-01-02 Thread Peter Hilber
On Wed, Dec 25, 2024 at 04:42:14PM -0800, Richard Cochran wrote: > On Mon, Dec 23, 2024 at 07:13:46PM +0100, Peter Hilber wrote: > > > The precise synchronization of the VM guest with its immediate > > environment can also be important; a VM guest may depend the decision > > about leap second smea

Re: [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2024-12-25 Thread Richard Cochran
On Mon, Dec 23, 2024 at 07:13:46PM +0100, Peter Hilber wrote: > The precise synchronization of the VM guest with its immediate > environment can also be important; a VM guest may depend the decision > about leap second smearing on its environment. I thought that the whole point of using a VM is t

Re: [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2024-12-23 Thread Peter Hilber
On Fri, Dec 20, 2024 at 07:19:52AM -0800, Richard Cochran wrote: > On Thu, Dec 19, 2024 at 09:42:03PM +0100, Peter Hilber wrote: > > Ioctl PTP_SYS_OFFSET_PRECISE2 provides cross-timestamping of device time > > and system time. This can be used for virtualization where (virtualization) > > host and

Re: [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2024-12-20 Thread Richard Cochran
On Thu, Dec 19, 2024 at 09:42:03PM +0100, Peter Hilber wrote: > Ioctl PTP_SYS_OFFSET_PRECISE2 provides cross-timestamping of device time > and system time. This can be used for virtualization where (virtualization) > host and guest refer to the same clocksource. It may be preferred to > indicate UT

[RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status

2024-12-19 Thread Peter Hilber
Ioctl PTP_SYS_OFFSET_PRECISE2 provides cross-timestamping of device time and system time. This can be used for virtualization where (virtualization) host and guest refer to the same clocksource. It may be preferred to indicate UTC time, rather than TAI. It is then useful to indicate when and how th