Il mer 11 giu 2025, 20:55 Pierrick Bouvier <pierrick.bouv...@linaro.org> ha scritto:
> > 1) different clocks have different starts, so the clock_start must be > > stored per clock type > > > > I was not sure if several clocks are used, so I'll simply use static in > concerned functions. > Ok. The cycles counter is also problematic, so perhaps make dilation work only with TCG? > 2) dilation must be applied to timers too. > > From what I saw, timers either use clock function (already dilated), or > rely on cpu_get_host_ticks(). > Do you suggest to dilate time returned by cpu_get_host_ticks(), or > something different? > Right. It just seemed that something was missing... and indeed that's deadline computation: it must convert the dilated deadline to host nanoseconds, i.e. do a division instead of a multiply. Paolo