[systemd-devel] [PATCH] udev rules: add udev rule to create /dev/ptp_kvm
Marcelo Tosatti
mtosatti at redhat.com
Fri Feb 24 01:20:31 UTC 2017
Its necessary to specify the KVM PTP device name in userspace.
In case a network card with PTP device is assigned to the guest,
it might be the case that KVM PTP gets /dev/ptp0 instead of /dev/ptp1.
Fix a device name for the KVM PTP device.
Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
diff --git a/rules/50-udev-default.rules b/rules/50-udev-default.rules
index e9eeb85..3347c8c 100644
--- a/rules/50-udev-default.rules
+++ b/rules/50-udev-default.rules
@@ -74,4 +74,6 @@ KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
+SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
+
LABEL="default_end"
More information about the systemd-devel
mailing list