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



At Fri, 21 Jun 2024 09:28:24 +0200, Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
Subject: Re: proposal:  stop using the xen_system_time timecounter in dom0
>
> That is certainly more reasonable than removing it completely

How is duplicating code more reasonable?

Maybe all of xen_system_time could be removed entirely and x86/x86/tsc.c
could take over.  It is quite possible it would work with little change
provided we can detect when RDTSC is being emulated, and possibly also
detect when migration has happened and if RDTSC is emulated then
override the actual CPU frequency with the 1GHz fiction of the emulated
RDTSC.  I.e. _move_ a wee bit of code from xen_clock.c to tsc.c instead
of _copying_ code from tsc.c to xen_clock.c.

--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpSu7Onqktga.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index