x86: Add virtualization time sync support
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 13 Aug 2023 21:02:03 +0000 (23:02 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 14 Aug 2023 18:13:12 +0000 (20:13 +0200)
This compiles the CONFIG_PTP_1588_CLOCK support into the kernel binary
and activates the drivers for KVM and VMware which allow syncing the
host time with the VM when OpenWrt is running in a VM. With this change
the CONFIG_HYPERV_UTILS driver is now build into the kernel, because it
depends on the PTP framework being compiled in. CONFIG_HYPERV_UTILS was
build as a module, but not packages before.

Fixes: #13277
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/x86/64/config-5.15
target/linux/x86/generic/config-5.15

index 720809e9857276331e0b26213bfac00d60d885a4..28a4758e572d7aceb85fe23f9101407d743ecf2e 100644 (file)
@@ -328,6 +328,7 @@ CONFIG_ND_CLAIM=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NET_FAILOVER=y
 CONFIG_NET_FLOW_LIMIT=y
+CONFIG_NET_PTP_CLASSIFY=y
 # CONFIG_NITRO_ENCLAVES is not set
 CONFIG_NR_CPUS=512
 CONFIG_NR_CPUS_DEFAULT=64
@@ -395,7 +396,11 @@ CONFIG_PM_SLEEP_SMP=y
 CONFIG_PNP=y
 CONFIG_PNPACPI=y
 CONFIG_PNP_DEBUG_MESSAGES=y
+CONFIG_PPS=y
 CONFIG_PROC_EVENTS=y
+CONFIG_PTP_1588_CLOCK=y
+CONFIG_PTP_1588_CLOCK_KVM=y
+CONFIG_PTP_1588_CLOCK_VMW=y
 CONFIG_PVH=y
 CONFIG_QUEUED_RWLOCKS=y
 CONFIG_QUEUED_SPINLOCKS=y
index 0aa6f3da5a5ca3cb05af4d2741a7beb931b4bf67..06f000802166a2c3b6f1a714b5feb2e39b2e5d75 100644 (file)
@@ -285,6 +285,7 @@ CONFIG_ND_CLAIM=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NET_FAILOVER=y
 CONFIG_NET_FLOW_LIMIT=y
+CONFIG_NET_PTP_CLASSIFY=y
 CONFIG_NO_HZ=y
 CONFIG_NR_CPUS=4
 CONFIG_NR_CPUS_DEFAULT=8
@@ -346,8 +347,12 @@ CONFIG_PNP=y
 CONFIG_PNPACPI=y
 # CONFIG_PNPBIOS is not set
 CONFIG_PNP_DEBUG_MESSAGES=y
+CONFIG_PPS=y
 CONFIG_PREEMPT_NOTIFIERS=y
 CONFIG_PROC_EVENTS=y
+CONFIG_PTP_1588_CLOCK=y
+CONFIG_PTP_1588_CLOCK_KVM=y
+CONFIG_PTP_1588_CLOCK_VMW=y
 CONFIG_PVH=y
 CONFIG_QUEUED_RWLOCKS=y
 CONFIG_QUEUED_SPINLOCKS=y