Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: proposal: stop using the xen_system_time timecounter in dom0



On Fri, Jun 21, 2024 at 01:17:43PM -0700, Greg A. Woods wrote:
> At Fri, 21 Jun 2024 21:38:26 +0200, Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
> Subject: Re: proposal:  stop using the xen_system_time timecounter in dom0
> >
> > This code is not just about NetBSD's timecounter, in dom0 it's supposed
> > to adjust the Xen clock so that it's accurate for others.
> 
> If I'm not mistaken this part can easily be changed to use the generic
> system time as its source.
> 
> I.e. xen_rtc_set() could call nanotime(9) instead of xen_global_systime_ns().

I'm not sure system_time can be set to an arbitrary value like nanotime(),
this would have to be checked.
This is were looking at other's code could be helpfull.


-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index