AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/06/30 04:10 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch only moves existing PTP drivers into a new 'emulated' subdirectory and updates the build system (Kconfig/Makefile) and MAINTAINERS file accordingly. There are no functional changes to the C code.",
  "WorthFuzzing": false
}

1/1 2026/06/30 04:10 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 236e43f3b279682de4c0992393c2cdddfe9985ff\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Tue Jun 30 04:10:33 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/MAINTAINERS b/MAINTAINERS\nindex 15011f5752a994..909bc2bd4f6cff 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -18716,6 +18716,7 @@ X:\tDocumentation/devicetree/bindings/net/can/\n X:\tDocumentation/devicetree/bindings/net/wireless/\n X:\tdrivers/net/can/\n X:\tdrivers/net/wireless/\n+X:\tdrivers/ptp/emulated/\n \n NETWORKING DRIVERS (WIRELESS)\n M:\tJohannes Berg \u003cjohannes@sipsolutions.net\u003e\n@@ -21737,8 +21738,18 @@ F:\tDocumentation/driver-api/ptp.rst\n F:\tdrivers/net/phy/dp83640*\n F:\tdrivers/ptp/*\n F:\tinclude/linux/ptp_cl*\n+X:\tdrivers/ptp/emulated/\n K:\t(?:\\b|_)ptp(?:\\b|_)\n \n+PTP EMULATED CLOCK SUPPORT\n+M:\tDavid Woodhouse \u003cdwmw2@infradead.org\u003e\n+R:\tWen Gu \u003cguwen@linux.alibaba.com\u003e\n+R:\tXuan Zhuo \u003cxuanzhuo@linux.alibaba.com\u003e\n+L:\tlinux-kernel@vger.kernel.org\n+S:\tMaintained\n+T:\tgit git://git.infradead.org/linux-ptp.git\n+F:\tdrivers/ptp/emulated/\n+\n PTP MOCKUP CLOCK SUPPORT\n M:\tVladimir Oltean \u003cvladimir.oltean@nxp.com\u003e\n L:\tnetdev@vger.kernel.org\n@@ -21755,10 +21766,10 @@ F:\tnet/ethtool/phc_vclocks.c\n \n PTP VMCLOCK SUPPORT\n M:\tDavid Woodhouse \u003cdwmw2@infradead.org\u003e\n-L:\tnetdev@vger.kernel.org\n+L:\tlinux-kernel@vger.kernel.org\n S:\tMaintained\n F:\tDocumentation/devicetree/bindings/ptp/amazon,vmclock.yaml\n-F:\tdrivers/ptp/ptp_vmclock.c\n+F:\tdrivers/ptp/emulated/ptp_vmclock.c\n F:\tinclude/uapi/linux/vmclock-abi.h\n \n PTRACE SUPPORT\n@@ -23875,7 +23886,7 @@ S390 PTP DRIVER\n M:\tSven Schnelle \u003csvens@linux.ibm.com\u003e\n L:\tlinux-s390@vger.kernel.org\n S:\tSupported\n-F:\tdrivers/ptp/ptp_s390.c\n+F:\tdrivers/ptp/emulated/ptp_s390.c\n \n S390 SCM DRIVER\n M:\tVineeth Vijayan \u003cvneethv@linux.ibm.com\u003e\n@@ -28858,9 +28869,9 @@ M:\tNick Shi \u003cnick.shi@broadcom.com\u003e\n R:\tAjay Kaher \u003cajay.kaher@broadcom.com\u003e\n R:\tAlexey Makhalov \u003calexey.makhalov@broadcom.com\u003e\n R:\tBroadcom internal kernel review list \u003cbcm-kernel-feedback-list@broadcom.com\u003e\n-L:\tnetdev@vger.kernel.org\n+L:\tlinux-kernel@vger.kernel.org\n S:\tSupported\n-F:\tdrivers/ptp/ptp_vmw.c\n+F:\tdrivers/ptp/emulated/ptp_vmw.c\n \n VMWARE VMCI DRIVER\n M:\tBryan Tan \u003cbryan-bt.tan@broadcom.com\u003e\ndiff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig\nindex b93640ca08b728..19ec509cb365ed 100644\n--- a/drivers/ptp/Kconfig\n+++ b/drivers/ptp/Kconfig\n@@ -119,35 +119,6 @@ config PTP_1588_CLOCK_PCH\n \t  To compile this driver as a module, choose M here: the module\n \t  will be called ptp_pch.\n \n-config PTP_1588_CLOCK_KVM\n-\ttristate \"KVM virtual PTP clock\"\n-\tdepends on PTP_1588_CLOCK\n-\tdepends on (KVM_GUEST \u0026\u0026 X86) || (HAVE_ARM_SMCCC_DISCOVERY \u0026\u0026 ARM_ARCH_TIMER)\n-\tdefault y\n-\thelp\n-\t  This driver adds support for using kvm infrastructure as a PTP\n-\t  clock. This clock is only useful if you are using KVM guests.\n-\n-\t  To compile this driver as a module, choose M here: the module\n-\t  will be called ptp_kvm.\n-\n-config PTP_1588_CLOCK_VMCLOCK\n-\ttristate \"Virtual machine PTP clock\"\n-\tdepends on X86_TSC || ARM_ARCH_TIMER\n-\tdepends on PTP_1588_CLOCK \u0026\u0026 ARCH_SUPPORTS_INT128\n-\tdefault PTP_1588_CLOCK_KVM\n-\thelp\n-\t  This driver adds support for using a virtual precision clock\n-\t  advertised by the hypervisor. This clock is only useful in virtual\n-\t  machines where such a device is present.\n-\n-\t  Unlike the KVM virtual PTP clock, the VMCLOCK device offers support\n-\t  for reliable timekeeping even across live migration. So this driver\n-\t  is enabled by default whenever the KVM PTP clock is.\n-\n-\t  To compile this driver as a module, choose M here: the module\n-\t  will be called ptp_vmclock.\n-\n config PTP_1588_CLOCK_IDT82P33\n \ttristate \"IDT 82P33xxx PTP clock\"\n \tdepends on PTP_1588_CLOCK \u0026\u0026 I2C\n@@ -195,18 +166,6 @@ config PTP_1588_CLOCK_MOCK\n \t  To compile this driver as a module, choose M here: the module\n \t  will be called ptp_mock.\n \n-config PTP_1588_CLOCK_VMW\n-\ttristate \"VMware virtual PTP clock\"\n-\tdepends on ACPI \u0026\u0026 HYPERVISOR_GUEST \u0026\u0026 X86\n-\tdepends on PTP_1588_CLOCK\n-\thelp\n-\t  This driver adds support for using VMware virtual precision\n-\t  clock device as a PTP clock. This is only useful in virtual\n-\t  machines running on VMware virtual infrastructure.\n-\n-\t  To compile this driver as a module, choose M here: the module\n-\t  will be called ptp_vmw.\n-\n config PTP_1588_CLOCK_OCP\n \ttristate \"OpenCompute TimeCard as PTP clock\"\n \tdepends on PTP_1588_CLOCK\n@@ -241,18 +200,6 @@ config PTP_DFL_TOD\n \t  To compile this driver as a module, choose M here: the module\n \t  will be called ptp_dfl_tod.\n \n-config PTP_S390\n-\ttristate \"S390 PTP driver\"\n-\tdepends on PTP_1588_CLOCK\n-\tdepends on S390\n-\thelp\n-\t  This driver adds support for S390 time steering via the PtP\n-\t  interface. This works by adding a in-kernel clock delta value,\n-\t  which is always added to time values used in the kernel. The PtP\n-\t  driver provides the raw clock value without the delta to\n-\t  userspace. That way userspace programs like chrony could steer\n-\t  the kernel clock.\n-\n config PTP_NETC_V4_TIMER\n \ttristate \"NXP NETC V4 Timer PTP Driver\"\n \tdepends on PTP_1588_CLOCK\n@@ -263,4 +210,6 @@ config PTP_NETC_V4_TIMER\n \t  synchronization. It also supports periodic output signal (e.g. PPS)\n \t  and external trigger timestamping.\n \n+source \"drivers/ptp/emulated/Kconfig\"\n+\n endmenu\ndiff --git a/drivers/ptp/Makefile b/drivers/ptp/Makefile\nindex bdc47e284f14e7..bcea2d3d4efd87 100644\n--- a/drivers/ptp/Makefile\n+++ b/drivers/ptp/Makefile\n@@ -1,24 +1,21 @@\n # SPDX-License-Identifier: GPL-2.0\n #\n-# Makefile for PTP 1588 clock support.\n+# Makefile for PTP clock support.\n #\n \n+subdir-ccflags-y += -I$(srctree)/drivers/ptp\n+\n ptp-y\t\t\t\t\t:= ptp_clock.o ptp_chardev.o ptp_sysfs.o ptp_vclock.o\n-ptp_kvm-$(CONFIG_X86)\t\t\t:= ptp_kvm_x86.o ptp_kvm_common.o\n-ptp_kvm-$(CONFIG_HAVE_ARM_SMCCC)\t:= ptp_kvm_arm.o ptp_kvm_common.o\n obj-$(CONFIG_PTP_1588_CLOCK)\t\t+= ptp.o\n obj-$(CONFIG_PTP_1588_CLOCK_DTE)\t+= ptp_dte.o\n obj-$(CONFIG_PTP_1588_CLOCK_INES)\t+= ptp_ines.o\n obj-$(CONFIG_PTP_1588_CLOCK_PCH)\t+= ptp_pch.o\n-obj-$(CONFIG_PTP_1588_CLOCK_KVM)\t+= ptp_kvm.o\n-obj-$(CONFIG_PTP_1588_CLOCK_VMCLOCK)\t+= ptp_vmclock.o\n obj-$(CONFIG_PTP_1588_CLOCK_QORIQ)\t+= ptp_qoriq.o\n obj-$(CONFIG_PTP_1588_CLOCK_IDTCM)\t+= ptp_clockmatrix.o\n obj-$(CONFIG_PTP_1588_CLOCK_FC3W)\t+= ptp_fc3.o\n obj-$(CONFIG_PTP_1588_CLOCK_IDT82P33)\t+= ptp_idt82p33.o\n obj-$(CONFIG_PTP_1588_CLOCK_MOCK)\t+= ptp_mock.o\n-obj-$(CONFIG_PTP_1588_CLOCK_VMW)\t+= ptp_vmw.o\n obj-$(CONFIG_PTP_1588_CLOCK_OCP)\t+= ptp_ocp.o\n obj-$(CONFIG_PTP_DFL_TOD)\t\t+= ptp_dfl_tod.o\n-obj-$(CONFIG_PTP_S390)\t\t\t+= ptp_s390.o\n obj-$(CONFIG_PTP_NETC_V4_TIMER)\t\t+= ptp_netc.o\n+obj-$(CONFIG_PTP_1588_CLOCK)\t\t+= emulated/\ndiff --git a/drivers/ptp/emulated/Kconfig b/drivers/ptp/emulated/Kconfig\nnew file mode 100644\nindex 00000000000000..3e11f78dfbd855\n--- /dev/null\n+++ b/drivers/ptp/emulated/Kconfig\n@@ -0,0 +1,61 @@\n+# SPDX-License-Identifier: GPL-2.0-only\n+#\n+# Emulated PTP clock drivers configuration\n+#\n+\n+menu \"Emulated PTP clock drivers\"\n+\n+config PTP_1588_CLOCK_KVM\n+\ttristate \"KVM virtual PTP clock\"\n+\tdepends on PTP_1588_CLOCK\n+\tdepends on (KVM_GUEST \u0026\u0026 X86) || (HAVE_ARM_SMCCC_DISCOVERY \u0026\u0026 ARM_ARCH_TIMER)\n+\tdefault y\n+\thelp\n+\t  This driver adds support for using kvm infrastructure as a PTP\n+\t  clock. This clock is only useful if you are using KVM guests.\n+\n+\t  To compile this driver as a module, choose M here: the module\n+\t  will be called ptp_kvm.\n+\n+config PTP_1588_CLOCK_VMCLOCK\n+\ttristate \"Virtual machine PTP clock\"\n+\tdepends on X86_TSC || ARM_ARCH_TIMER\n+\tdepends on PTP_1588_CLOCK \u0026\u0026 ARCH_SUPPORTS_INT128\n+\tdefault PTP_1588_CLOCK_KVM\n+\thelp\n+\t  This driver adds support for using a virtual precision clock\n+\t  advertised by the hypervisor. This clock is only useful in virtual\n+\t  machines where such a device is present.\n+\n+\t  Unlike the KVM virtual PTP clock, the VMCLOCK device offers support\n+\t  for reliable timekeeping even across live migration. So this driver\n+\t  is enabled by default whenever the KVM PTP clock is.\n+\n+\t  To compile this driver as a module, choose M here: the module\n+\t  will be called ptp_vmclock.\n+\n+config PTP_1588_CLOCK_VMW\n+\ttristate \"VMware virtual PTP clock\"\n+\tdepends on ACPI \u0026\u0026 HYPERVISOR_GUEST \u0026\u0026 X86\n+\tdepends on PTP_1588_CLOCK\n+\thelp\n+\t  This driver adds support for using VMware virtual precision\n+\t  clock device as a PTP clock. This is only useful in virtual\n+\t  machines running on VMware virtual infrastructure.\n+\n+\t  To compile this driver as a module, choose M here: the module\n+\t  will be called ptp_vmw.\n+\n+config PTP_S390\n+\ttristate \"S390 PTP driver\"\n+\tdepends on PTP_1588_CLOCK\n+\tdepends on S390\n+\thelp\n+\t  This driver adds support for S390 time steering via the PtP\n+\t  interface. This works by adding a in-kernel clock delta value,\n+\t  which is always added to time values used in the kernel. The PtP\n+\t  driver provides the raw clock value without the delta to\n+\t  userspace. That way userspace programs like chrony could steer\n+\t  the kernel clock.\n+\n+endmenu\ndiff --git a/drivers/ptp/emulated/Makefile b/drivers/ptp/emulated/Makefile\nnew file mode 100644\nindex 00000000000000..577917df3dc9c4\n--- /dev/null\n+++ b/drivers/ptp/emulated/Makefile\n@@ -0,0 +1,11 @@\n+# SPDX-License-Identifier: GPL-2.0\n+#\n+# Makefile for emulated PTP clocks.\n+#\n+\n+ptp_kvm-$(CONFIG_X86)\t\t\t:= ptp_kvm_x86.o ptp_kvm_common.o\n+ptp_kvm-$(CONFIG_HAVE_ARM_SMCCC)\t:= ptp_kvm_arm.o ptp_kvm_common.o\n+obj-$(CONFIG_PTP_1588_CLOCK_KVM)\t+= ptp_kvm.o\n+obj-$(CONFIG_PTP_1588_CLOCK_VMCLOCK)\t+= ptp_vmclock.o\n+obj-$(CONFIG_PTP_1588_CLOCK_VMW)\t+= ptp_vmw.o\n+obj-$(CONFIG_PTP_S390)\t\t\t+= ptp_s390.o\ndiff --git a/drivers/ptp/ptp_kvm_arm.c b/drivers/ptp/emulated/ptp_kvm_arm.c\nsimilarity index 100%\nrename from drivers/ptp/ptp_kvm_arm.c\nrename to drivers/ptp/emulated/ptp_kvm_arm.c\ndiff --git a/drivers/ptp/ptp_kvm_common.c b/drivers/ptp/emulated/ptp_kvm_common.c\nsimilarity index 100%\nrename from drivers/ptp/ptp_kvm_common.c\nrename to drivers/ptp/emulated/ptp_kvm_common.c\ndiff --git a/drivers/ptp/ptp_kvm_x86.c b/drivers/ptp/emulated/ptp_kvm_x86.c\nsimilarity index 100%\nrename from drivers/ptp/ptp_kvm_x86.c\nrename to drivers/ptp/emulated/ptp_kvm_x86.c\ndiff --git a/drivers/ptp/ptp_s390.c b/drivers/ptp/emulated/ptp_s390.c\nsimilarity index 100%\nrename from drivers/ptp/ptp_s390.c\nrename to drivers/ptp/emulated/ptp_s390.c\ndiff --git a/drivers/ptp/ptp_vmclock.c b/drivers/ptp/emulated/ptp_vmclock.c\nsimilarity index 100%\nrename from drivers/ptp/ptp_vmclock.c\nrename to drivers/ptp/emulated/ptp_vmclock.c\ndiff --git a/drivers/ptp/ptp_vmw.c b/drivers/ptp/emulated/ptp_vmw.c\nsimilarity index 100%\nrename from drivers/ptp/ptp_vmw.c\nrename to drivers/ptp/emulated/ptp_vmw.c\n"
}

2/1 2026/06/30 04:10 agent patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch only moves existing PTP drivers into a new 'emulated' subdirectory and updates the build system (Kconfig/Makefile) and MAINTAINERS file accordingly. There are no functional changes to the C code.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer.
Your job is to review a provided patch series and determine
if it makes functional changes to the kernel that should be fuzzed.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively
use your code access tools to examine the actual source code and confirm any assumptions.

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).

If it modifies reachable core kernel logic, drivers, or architectures, use your code search
tools to verify the code can be executed, then return WorthFuzzing=true.

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Do not list too generic configs (we already have them enabled). Only list those that
   specifically cover the modified code. List them in the EnableConfigs output array,
   and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
For your convenience, here is the diff of the changes:
commit 236e43f3b279682de4c0992393c2cdddfe9985ff
Author: syz-cluster <triage@syzkaller.com>
Date:   Tue Jun 30 04:10:33 2026 +0000

    syz-cluster: applied patch under review

diff --git a/MAINTAINERS b/MAINTAINERS
index 15011f5752a994..909bc2bd4f6cff 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -18716,6 +18716,7 @@ X:	Documentation/devicetree/bindings/net/can/
 X:	Documentation/devicetree/bindings/net/wireless/
 X:	drivers/net/can/
 X:	drivers/net/wireless/
+X:	drivers/ptp/emulated/
 
 NETWORKING DRIVERS (WIRELESS)
 M:	Johannes Berg <johannes@sipsolutions.net>
@@ -21737,8 +21738,18 @@ F:	Documentation/driver-api/ptp.rst
 F:	drivers/net/phy/dp83640*
 F:	drivers/ptp/*
 F:	include/linux/ptp_cl*
+X:	drivers/ptp/emulated/
 K:	(?:\b|_)ptp(?:\b|_)
 
+PTP EMULATED CLOCK SUPPORT
+M:	David Woodhouse <dwmw2@infradead.org>
+R:	Wen Gu <guwen@linux.alibaba.com>
+R:	Xuan Zhuo <xuanzhuo@linux.alibaba.com>
+L:	linux-kernel@vger.kernel.org
+S:	Maintained
+T:	git git://git.infradead.org/linux-ptp.git
+F:	drivers/ptp/emulated/
+
 PTP MOCKUP CLOCK SUPPORT
 M:	Vladimir Oltean <vladimir.oltean@nxp.com>
 L:	netdev@vger.kernel.org
@@ -21755,10 +21766,10 @@ F:	net/ethtool/phc_vclocks.c
 
 PTP VMCLOCK SUPPORT
 M:	David Woodhouse <dwmw2@infradead.org>
-L:	netdev@vger.kernel.org
+L:	linux-kernel@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/ptp/amazon,vmclock.yaml
-F:	drivers/ptp/ptp_vmclock.c
+F:	drivers/ptp/emulated/ptp_vmclock.c
 F:	include/uapi/linux/vmclock-abi.h
 
 PTRACE SUPPORT
@@ -23875,7 +23886,7 @@ S390 PTP DRIVER
 M:	Sven Schnelle <svens@linux.ibm.com>
 L:	linux-s390@vger.kernel.org
 S:	Supported
-F:	drivers/ptp/ptp_s390.c
+F:	drivers/ptp/emulated/ptp_s390.c
 
 S390 SCM DRIVER
 M:	Vineeth Vijayan <vneethv@linux.ibm.com>
@@ -28858,9 +28869,9 @@ M:	Nick Shi <nick.shi@broadcom.com>
 R:	Ajay Kaher <ajay.kaher@broadcom.com>
 R:	Alexey Makhalov <alexey.makhalov@broadcom.com>
 R:	Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
-L:	netdev@vger.kernel.org
+L:	linux-kernel@vger.kernel.org
 S:	Supported
-F:	drivers/ptp/ptp_vmw.c
+F:	drivers/ptp/emulated/ptp_vmw.c
 
 VMWARE VMCI DRIVER
 M:	Bryan Tan <bryan-bt.tan@broadcom.com>
diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig
index b93640ca08b728..19ec509cb365ed 100644
--- a/drivers/ptp/Kconfig
+++ b/drivers/ptp/Kconfig
@@ -119,35 +119,6 @@ config PTP_1588_CLOCK_PCH
 	  To compile this driver as a module, choose M here: the module
 	  will be called ptp_pch.
 
-config PTP_1588_CLOCK_KVM
-	tristate "KVM virtual PTP clock"
-	depends on PTP_1588_CLOCK
-	depends on (KVM_GUEST && X86) || (HAVE_ARM_SMCCC_DISCOVERY && ARM_ARCH_TIMER)
-	default y
-	help
-	  This driver adds support for using kvm infrastructure as a PTP
-	  clock. This clock is only useful if you are using KVM guests.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called ptp_kvm.
-
-config PTP_1588_CLOCK_VMCLOCK
-	tristate "Virtual machine PTP clock"
-	depends on X86_TSC || ARM_ARCH_TIMER
-	depends on PTP_1588_CLOCK && ARCH_SUPPORTS_INT128
-	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.
-
 config PTP_1588_CLOCK_IDT82P33
 	tristate "IDT 82P33xxx PTP clock"
 	depends on PTP_1588_CLOCK && I2C
@@ -195,18 +166,6 @@ config PTP_1588_CLOCK_MOCK
 	  To compile this driver as a module, choose M here: the module
 	  will be called ptp_mock.
 
-config PTP_1588_CLOCK_VMW
-	tristate "VMware virtual PTP clock"
-	depends on ACPI && HYPERVISOR_GUEST && X86
-	depends on PTP_1588_CLOCK
-	help
-	  This driver adds support for using VMware virtual precision
-	  clock device as a PTP clock. This is only useful in virtual
-	  machines running on VMware virtual infrastructure.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called ptp_vmw.
-
 config PTP_1588_CLOCK_OCP
 	tristate "OpenCompute TimeCard as PTP clock"
 	depends on PTP_1588_CLOCK
@@ -241,18 +200,6 @@ config PTP_DFL_TOD
 	  To compile this driver as a module, choose M here: the module
 	  will be called ptp_dfl_tod.
 
-config PTP_S390
-	tristate "S390 PTP driver"
-	depends on PTP_1588_CLOCK
-	depends on S390
-	help
-	  This driver adds support for S390 time steering via the PtP
-	  interface. This works by adding a in-kernel clock delta value,
-	  which is always added to time values used in the kernel. The PtP
-	  driver provides the raw clock value without the delta to
-	  userspace. That way userspace programs like chrony could steer
-	  the kernel clock.
-
 config PTP_NETC_V4_TIMER
 	tristate "NXP NETC V4 Timer PTP Driver"
 	depends on PTP_1588_CLOCK
@@ -263,4 +210,6 @@ config PTP_NETC_V4_TIMER
 	  synchronization. It also supports periodic output signal (e.g. PPS)
 	  and external trigger timestamping.
 
+source "drivers/ptp/emulated/Kconfig"
+
 endmenu
diff --git a/drivers/ptp/Makefile b/drivers/ptp/Makefile
index bdc47e284f14e7..bcea2d3d4efd87 100644
--- a/drivers/ptp/Makefile
+++ b/drivers/ptp/Makefile
@@ -1,24 +1,21 @@
 # SPDX-License-Identifier: GPL-2.0
 #
-# Makefile for PTP 1588 clock support.
+# Makefile for PTP clock support.
 #
 
+subdir-ccflags-y += -I$(srctree)/drivers/ptp
+
 ptp-y					:= ptp_clock.o ptp_chardev.o ptp_sysfs.o ptp_vclock.o
-ptp_kvm-$(CONFIG_X86)			:= ptp_kvm_x86.o ptp_kvm_common.o
-ptp_kvm-$(CONFIG_HAVE_ARM_SMCCC)	:= ptp_kvm_arm.o ptp_kvm_common.o
 obj-$(CONFIG_PTP_1588_CLOCK)		+= ptp.o
 obj-$(CONFIG_PTP_1588_CLOCK_DTE)	+= ptp_dte.o
 obj-$(CONFIG_PTP_1588_CLOCK_INES)	+= ptp_ines.o
 obj-$(CONFIG_PTP_1588_CLOCK_PCH)	+= ptp_pch.o
-obj-$(CONFIG_PTP_1588_CLOCK_KVM)	+= ptp_kvm.o
-obj-$(CONFIG_PTP_1588_CLOCK_VMCLOCK)	+= ptp_vmclock.o
 obj-$(CONFIG_PTP_1588_CLOCK_QORIQ)	+= ptp_qoriq.o
 obj-$(CONFIG_PTP_1588_CLOCK_IDTCM)	+= ptp_clockmatrix.o
 obj-$(CONFIG_PTP_1588_CLOCK_FC3W)	+= ptp_fc3.o
 obj-$(CONFIG_PTP_1588_CLOCK_IDT82P33)	+= ptp_idt82p33.o
 obj-$(CONFIG_PTP_1588_CLOCK_MOCK)	+= ptp_mock.o
-obj-$(CONFIG_PTP_1588_CLOCK_VMW)	+= ptp_vmw.o
 obj-$(CONFIG_PTP_1588_CLOCK_OCP)	+= ptp_ocp.o
 obj-$(CONFIG_PTP_DFL_TOD)		+= ptp_dfl_tod.o
-obj-$(CONFIG_PTP_S390)			+= ptp_s390.o
 obj-$(CONFIG_PTP_NETC_V4_TIMER)		+= ptp_netc.o
+obj-$(CONFIG_PTP_1588_CLOCK)		+= emulated/
diff --git a/drivers/ptp/emulated/Kconfig b/drivers/ptp/emulated/Kconfig
new file mode 100644
index 00000000000000..3e11f78dfbd855
--- /dev/null
+++ b/drivers/ptp/emulated/Kconfig
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Emulated PTP clock drivers configuration
+#
+
+menu "Emulated PTP clock drivers"
+
+config PTP_1588_CLOCK_KVM
+	tristate "KVM virtual PTP clock"
+	depends on PTP_1588_CLOCK
+	depends on (KVM_GUEST && X86) || (HAVE_ARM_SMCCC_DISCOVERY && ARM_ARCH_TIMER)
+	default y
+	help
+	  This driver adds support for using kvm infrastructure as a PTP
+	  clock. This clock is only useful if you are using KVM guests.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called ptp_kvm.
+
+config PTP_1588_CLOCK_VMCLOCK
+	tristate "Virtual machine PTP clock"
+	depends on X86_TSC || ARM_ARCH_TIMER
+	depends on PTP_1588_CLOCK && ARCH_SUPPORTS_INT128
+	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.
+
+config PTP_1588_CLOCK_VMW
+	tristate "VMware virtual PTP clock"
+	depends on ACPI && HYPERVISOR_GUEST && X86
+	depends on PTP_1588_CLOCK
+	help
+	  This driver adds support for using VMware virtual precision
+	  clock device as a PTP clock. This is only useful in virtual
+	  machines running on VMware virtual infrastructure.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called ptp_vmw.
+
+config PTP_S390
+	tristate "S390 PTP driver"
+	depends on PTP_1588_CLOCK
+	depends on S390
+	help
+	  This driver adds support for S390 time steering via the PtP
+	  interface. This works by adding a in-kernel clock delta value,
+	  which is always added to time values used in the kernel. The PtP
+	  driver provides the raw clock value without the delta to
+	  userspace. That way userspace programs like chrony could steer
+	  the kernel clock.
+
+endmenu
diff --git a/drivers/ptp/emulated/Makefile b/drivers/ptp/emulated/Makefile
new file mode 100644
index 00000000000000..577917df3dc9c4
--- /dev/null
+++ b/drivers/ptp/emulated/Makefile
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for emulated PTP clocks.
+#
+
+ptp_kvm-$(CONFIG_X86)			:= ptp_kvm_x86.o ptp_kvm_common.o
+ptp_kvm-$(CONFIG_HAVE_ARM_SMCCC)	:= ptp_kvm_arm.o ptp_kvm_common.o
+obj-$(CONFIG_PTP_1588_CLOCK_KVM)	+= ptp_kvm.o
+obj-$(CONFIG_PTP_1588_CLOCK_VMCLOCK)	+= ptp_vmclock.o
+obj-$(CONFIG_PTP_1588_CLOCK_VMW)	+= ptp_vmw.o
+obj-$(CONFIG_PTP_S390)			+= ptp_s390.o
diff --git a/drivers/ptp/ptp_kvm_arm.c b/drivers/ptp/emulated/ptp_kvm_arm.c
similarity index 100%
rename from drivers/ptp/ptp_kvm_arm.c
rename to drivers/ptp/emulated/ptp_kvm_arm.c
diff --git a/drivers/ptp/ptp_kvm_common.c b/drivers/ptp/emulated/ptp_kvm_common.c
similarity index 100%
rename from drivers/ptp/ptp_kvm_common.c
rename to drivers/ptp/emulated/ptp_kvm_common.c
diff --git a/drivers/ptp/ptp_kvm_x86.c b/drivers/ptp/emulated/ptp_kvm_x86.c
similarity index 100%
rename from drivers/ptp/ptp_kvm_x86.c
rename to drivers/ptp/emulated/ptp_kvm_x86.c
diff --git a/drivers/ptp/ptp_s390.c b/drivers/ptp/emulated/ptp_s390.c
similarity index 100%
rename from drivers/ptp/ptp_s390.c
rename to drivers/ptp/emulated/ptp_s390.c
diff --git a/drivers/ptp/ptp_vmclock.c b/drivers/ptp/emulated/ptp_vmclock.c
similarity index 100%
rename from drivers/ptp/ptp_vmclock.c
rename to drivers/ptp/emulated/ptp_vmclock.c
diff --git a/drivers/ptp/ptp_vmw.c b/drivers/ptp/emulated/ptp_vmw.c
similarity index 100%
rename from drivers/ptp/ptp_vmw.c
rename to drivers/ptp/emulated/ptp_vmw.c

3/2 2026/06/30 04:10 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 6112
							output: 75
							thoughts: 388
						

Thoughts:
**Analysis of the PTP Driver Relocation Patch**

Okay, so this patch is a straightforward reorganization of several PTP drivers. My initial impression is that this should be a "no-op" in terms of functionality. I see the intention is to move `ptp_kvm`, `ptp_vmclock`, `ptp_vmw`, and `ptp_s390` drivers into a new `drivers/ptp/emulated/` subdirectory. The patch also updates the `MAINTAINERS` file, `Kconfig`, and `Makefile` to reflect this new directory structure.

Just to be absolutely sure, I'm quickly cross-checking to verify there aren't any sneaky C code changes. The diff confirms my initial thoughts. The changes are all file renames, as expected, with a 100% similarity index. It shows moves from the old locations (e.g., `drivers/ptp/ptp_kvm_arm.c`) to the new location within the `emulated/` directory, and this is consistent across all the affected drivers. So, `ptp_kvm_common.c`, `ptp_kvm_x86.c`, `ptp_s390.c`, `ptp_vmclock.c`, and `ptp_vmw.c` are all exhibiting the same behavior. There are no actual code modifications, just file system moves and build system adjustments.

Now I am double checking, and I can confirm:
- `MAINTAINERS`: the paths are updated.
- `drivers/ptp/Kconfig`: the relevant entries have been removed and a `source "drivers/ptp/emulated/Kconfig"` line is added.
- `drivers/ptp/Makefile`: the entries are removed and `obj-$(CONFIG_PTP_1588_CLOCK) += emulated/` is added.
- `drivers/ptp/emulated/Kconfig`: new entries for the relocated drivers are added.
- `drivers/ptp/emulated/Makefile`: new entries for the relocated drivers are added.
- The C files are indeed renamed, and the similarity index confirms 100% similarity, implying no code changes.

Alright, the evidence is conclusive. This patch is purely a refactoring operation. It doesn't introduce any new functionality or modify existing kernel logic. It is safe to declare that `WorthFuzzing` should be set to `false` for this change.



4/2 2026/06/30 04:10 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch only moves existing PTP drivers into a new 'emulated' subdirectory and updates the build system (Kconfig/Makefile) and MAINTAINERS file accordingly. There are no functional changes to the C code.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch only moves existing PTP drivers into a new 'emulated' subdirectory and updates the build system (Kconfig/Makefile) and MAINTAINERS file accordingly. There are no functional changes to the C code.",
  "WorthFuzzing": false
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)