Gerd Hoffmann wrote:
>> +struct shared_info shared_info __attribute__((__aligned__(PAGE_SIZE)));
> 
> leftover from old version?
> 
>> +unsigned long kvm_get_wallclock(void)
>> +{
>> +    u32 wc_sec, wc_nsec;
>> +    u64 delta, last_tsc;
>> +    struct timespec ts;
>> +    int version, nsec, cpu = smp_processor_id();
>> +
>> +    native_write_msr(MSR_KVM_WALL_CLOCK, __pa(&wall_clock));
> 
> Huh?  Shouldn't that be done once at boot time?
> 
> cheers,
>   Gerd
> 
> 
It can, but I don't think so. The closer to read we do, the more 
precision we get on unstable tsc systems.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to