* [PATCH net-next] ptp: Remove 'default y' for VMCLOCK PTP device
@ 2024-11-02 21:52 David Woodhouse
2024-11-05 2:19 ` Jakub Kicinski
2024-11-05 2:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: David Woodhouse @ 2024-11-02 21:52 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Richard Cochran, Peter Hilber, linux-kernel, virtualization,
linux-arm-kernel, linux-rtc, Ridoux, Julien, virtio-dev,
Luu, Ryan, Chashper, David, Mohamed Abuelfotoh, Hazem,
Paolo Abeni, Christopher S . Hall, Jason Wang, John Stultz,
Michael S . Tsirkin, netdev, Stephen Boyd, Thomas Gleixner,
Xuan Zhuo, Marc Zyngier, Mark Rutland, Daniel Lezcano,
Alessandro Zummo, Alexandre Belloni, qemu-devel, Simon Horman
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
From: David Woodhouse <dwmw@amazon.co.uk>
The VMCLOCK device gives support for accurate timekeeping even across
live migration, unlike the KVM PTP clock. To help ensure that users can
always use ptp_vmclock where it's available in preference to ptp_kvm,
set it to 'default PTP_1588_CLOCK_VMCLOCK' instead of 'default y'.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
drivers/ptp/Kconfig | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig
index e98c9767e0ef..ed087ae75f0e 100644
--- a/drivers/ptp/Kconfig
+++ b/drivers/ptp/Kconfig
@@ -135,12 +135,16 @@ config PTP_1588_CLOCK_VMCLOCK
tristate "Virtual machine PTP clock"
depends on X86_TSC || ARM_ARCH_TIMER
depends on PTP_1588_CLOCK && ACPI && ARCH_SUPPORTS_INT128
- default y
+ default PTP_1588_CLOCK_KVM
help
This driver adds support for using a virtual precision clock
advertised by the hypervisor. This clock is only useful in virtual
machines where such a device is present.
+ Unlike the KVM virtual PTP clock, the VMCLOCK device offers support
+ for reliable timekeeping even across live migration. So this driver
+ is enabled by default whenever the KVM PTP clock is.
+
To compile this driver as a module, choose M here: the module
will be called ptp_vmclock.
--
2.44.0
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5965 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] ptp: Remove 'default y' for VMCLOCK PTP device
2024-11-02 21:52 [PATCH net-next] ptp: Remove 'default y' for VMCLOCK PTP device David Woodhouse
@ 2024-11-05 2:19 ` Jakub Kicinski
2024-11-05 2:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2024-11-05 2:19 UTC (permalink / raw)
To: David Woodhouse
Cc: Richard Cochran, Peter Hilber, linux-kernel, virtualization,
linux-arm-kernel, linux-rtc, Ridoux, Julien, virtio-dev,
Luu, Ryan, Chashper, David, Mohamed Abuelfotoh, Hazem,
Paolo Abeni, Christopher S . Hall, Jason Wang, John Stultz,
Michael S . Tsirkin, netdev, Stephen Boyd, Thomas Gleixner,
Xuan Zhuo, Marc Zyngier, Mark Rutland, Daniel Lezcano,
Alessandro Zummo, Alexandre Belloni, qemu-devel, Simon Horman
On Sat, 02 Nov 2024 16:52:17 -0500 David Woodhouse wrote:
> From: David Woodhouse <dwmw@amazon.co.uk>
>
> The VMCLOCK device gives support for accurate timekeeping even across
> live migration, unlike the KVM PTP clock. To help ensure that users can
> always use ptp_vmclock where it's available in preference to ptp_kvm,
> set it to 'default PTP_1588_CLOCK_VMCLOCK' instead of 'default y'.
Good enough for me, let's see if it's good enough for the main guy :)
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] ptp: Remove 'default y' for VMCLOCK PTP device
2024-11-02 21:52 [PATCH net-next] ptp: Remove 'default y' for VMCLOCK PTP device David Woodhouse
2024-11-05 2:19 ` Jakub Kicinski
@ 2024-11-05 2:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-11-05 2:20 UTC (permalink / raw)
To: David Woodhouse
Cc: kuba, richardcochran, peter.hilber, linux-kernel, virtualization,
linux-arm-kernel, linux-rtc, ridouxj, virtio-dev, rluu, chashper,
abuehaze, pabeni, christopher.s.hall, jasowang, jstultz, mst,
netdev, sboyd, tglx, xuanzhuo, maz, mark.rutland, daniel.lezcano,
a.zummo, alexandre.belloni, qemu-devel, horms
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sat, 02 Nov 2024 16:52:17 -0500 you wrote:
> From: David Woodhouse <dwmw@amazon.co.uk>
>
> The VMCLOCK device gives support for accurate timekeeping even across
> live migration, unlike the KVM PTP clock. To help ensure that users can
> always use ptp_vmclock where it's available in preference to ptp_kvm,
> set it to 'default PTP_1588_CLOCK_VMCLOCK' instead of 'default y'.
>
> [...]
Here is the summary with links:
- [net-next] ptp: Remove 'default y' for VMCLOCK PTP device
https://git.kernel.org/netdev/net-next/c/18ec5491a495
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-05 2:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-02 21:52 [PATCH net-next] ptp: Remove 'default y' for VMCLOCK PTP device David Woodhouse
2024-11-05 2:19 ` Jakub Kicinski
2024-11-05 2:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).