From: Vivek Thampi <vithampi@vmware.com>
To: David Miller <davem@davemloft.net>
Cc: "richardcochran@gmail.com" <richardcochran@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Pv-drivers <Pv-drivers@vmware.com>,
"virtualization@lists.linux-foundation.org"
<virtualization@lists.linux-foundation.org>,
"x86@kernel.org" <x86@kernel.org>,
Thomas Hellstrom <thellstrom@vmware.com>,
"jgross@suse.com" <jgross@suse.com>
Subject: Re: [PATCH RESEND] ptp: add VMware virtual PTP clock driver
Date: Thu, 5 Mar 2020 04:47:28 +0000 [thread overview]
Message-ID: <20200305044713.GA173879@sc2-cpbu2-b0737.eng.vmware.com> (raw)
In-Reply-To: <20200304.140410.731261448085906331.davem@davemloft.net>
Thanks for taking a look, David.
On Wed, Mar 04, 2020 at 02:04:10PM -0800, David Miller wrote:
> From: Vivek Thampi <vithampi@vmware.com>
> Date: Fri, 28 Feb 2020 05:32:46 +0000
>
> > Add a PTP clock driver called ptp_vmw, for guests running on VMware ESXi
> > hypervisor. The driver attaches to a VMware virtual device called
> > "precision clock" that provides a mechanism for querying host system time.
> > Similar to existing virtual PTP clock drivers (e.g. ptp_kvm), ptp_vmw
> > utilizes the kernel's PTP hardware clock API to implement a clock device
> > that can be used as a reference in Chrony for synchronizing guest time with
> > host.
> >
> > The driver is only applicable to x86 guests running in VMware virtual
> > machines with precision clock virtual device present. It uses a VMware
> > specific hypercall mechanism to read time from the device.
> >
> > Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
> > Signed-off-by: Vivek Thampi <vithampi@vmware.com>
> > ---
> > Based on feedback, resending patch to include a broader audience.
>
> If it's just providing a read of an accurate timesource, I think it's kinda
> pointless to provide a full PTP driver for it.
The point of a PTP driver for this timesource is to provide an interface
that can be consumed by Chrony (and possibly other applications) as a
reference clock for time sync. This is admittedly a very basic first
step providing just PTP_SYS_OFFSET functionality (which gets us to <1us
VM-host time sync). Down the line, I also intend to introduce
cross-timestamping for more precise offsets.
Using the PHC infrastructure seems like a good fit for this, but please
let me know if I'm missing something or misinterpreting your comment.
Thanks.
next prev parent reply other threads:[~2020-03-05 4:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-28 5:32 Vivek Thampi
2020-03-04 22:04 ` David Miller
2020-03-05 4:47 ` Vivek Thampi [this message]
2020-03-06 1:25 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200305044713.GA173879@sc2-cpbu2-b0737.eng.vmware.com \
--to=vithampi@vmware.com \
--cc=Pv-drivers@vmware.com \
--cc=davem@davemloft.net \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
--cc=thellstrom@vmware.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®