On Mon, 2023-12-18 at 08:38 +0100, Peter Hilber wrote: > > +int viortc_hw_xtstamp_params(u16 *hw_counter, enum clocksource_ids *cs_id) > +{ > + *hw_counter = VIRTIO_RTC_COUNTER_ARM_VIRT; Hm, but what if it isn't? I think you need to put this in drivers/clocksource/arm_arch_timer.c where it can do something like kvm_arch_ptp_get_crosststamp() does to decide: if (arch_timer_uses_ppi == ARCH_TIMER_VIRT_PPI) ptp_counter = KVM_PTP_VIRT_COUNTER; else ptp_counter = KVM_PTP_PHYS_COUNTER; > + *cs_id = CSID_ARM_ARCH_COUNTER; > + > + return 0; > +}
Attachment:
smime.p7s
Description: S/MIME cryptographic signature