Re: [PATCH 2/2] lguest: handle dodgy/non-existent TSC. Guest code.

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

 



On Wed, 2007-07-04 at 16:44 +1000, Tony Breeds wrote:
> Why bother installing an lguest_clock which is the same as jiffies?
> Wouldn't it be better to just use the system provided jiffies
> clocksource in the case where you haven't been provided with
> lguest_data.tsc_khz ?

Hi Tony!

	Yes, but jiffies is the lowest-rated clock (so PIT will get chosen).  I
initially mugged clocksource_jiffies.rating, but that felt wrong: it's
currently not registered when this code runs so it's a simple
assignment, but if code order was to change it would have to be a call
to clocksource_change_rating().

There's an internal clocksource_override which I could use, but I'd have
to make it non-static.

Maybe John has thoughts?

Thanks,
Rusty.

_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/virtualization

[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux