be0c12
From c0e530dc95fa7842ec1a48fd5df98956a76ae26c Mon Sep 17 00:00:00 2001
be0c12
From: Luca Boccassi <luca.boccassi@microsoft.com>
be0c12
Date: Fri, 26 Feb 2021 10:25:31 +0000
be0c12
Subject: [PATCH] udev rules: add rule to create /dev/ptp_hyperv
be0c12
be0c12
As for the KVM case, necessary for network cards with
be0c12
PTP devices when running a guest on HyperV
be0c12
be0c12
(cherry picked from commit 32e868f058da8b90add00b2958c516241c532b70)
be0c12
be0c12
Resolves: #1991834
be0c12
---
be0c12
 rules/50-udev-default.rules.in | 2 ++
be0c12
 1 file changed, 2 insertions(+)
be0c12
be0c12
diff --git a/rules/50-udev-default.rules.in b/rules/50-udev-default.rules.in
be0c12
index 191f56f42e..36657ce1a4 100644
be0c12
--- a/rules/50-udev-default.rules.in
be0c12
+++ b/rules/50-udev-default.rules.in
be0c12
@@ -83,4 +83,6 @@ KERNEL=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=kvm"
be0c12
 
be0c12
 SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
be0c12
 
be0c12
+SUBSYSTEM=="ptp", ATTR{clock_name}=="hyperv", SYMLINK += "ptp_hyperv"
be0c12
+
be0c12
 LABEL="default_end"