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

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

 



Rusty Russell wrote:
	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?

How about having lguest_tsc and lguest_jiffies clocksources, with the approprate ratings to get them selected when needed? And lguest_jiffies could probably just be a new structure which points to the normal jiffies clocksource function(s).

   J
_______________________________________________
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