On 7/21/2020 3:24 PM, Hussamuddin Nasir via Linuxptp-users wrote: > Hello folks, > > I am using Mellanox Connect X5 dual port 100G card whose PTP clock > devices (/dev/ptp0, /dev/ptp1) were synced using ptp4l and phc2sys via a > PTP Appliance. We now install a KVM on the physical host and setup the > Mellanox NIC as pass thru to the KVM. The KVM has the module ptp_kvm > (/dev/ptp2) installed in it and i am able to successfully run phc2sys to > sync /dev/ptp0 from /dev/ptp2 using the command > > phc2sys -O 35 -s /dev/ptp2 -c /dev/ptp0 > > NOTE: I am not using ptp4l inside the KVM since the ptp_kvm device gives > the accurate time from the host that is already being synced using > ptp4l/phc2sys on the host
So you're passing one port of the device into the VM, but not the other? > > But i am unable to provide an additional "-c" here to sync the other > ptp device in the KVM. Right, because the PTP device is created in the VM, not in the host. > > I know that is possible using the boundary clock config option in ptp4l > when we have ptp4l and phc2sys running in automatic mode since we had > that working on the host without the KVM. >> So any suggestions on how do i do phc2sys for multiple destination devices ? > The problem, I think, is that the two PTP clocks aren't both visible in the same system. One is in the host, and one in the VM. I don't know if this can be solved today. It seems like you'd be better off doing a virtual device into the VM and leaving the whole MLX5 card out in the host. Thanks, Jake _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users