Need info on timer/timing mechanisms (w.r.t KVM)

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

 



Hi,  (already posted this on KVM devel list)

I'd like to know what happens when the KVM guest kernel or process in the
guest tries to get timing information. For example if a userspace
process in the guest calls nanotime(), getnanotime() or gettimeofday()
functions, then where is the time info read from ?

I had a look thru the latest 2.6.25.10 kernel source at lxr.no and I
found some functions in include/linux/kvm_host.h  ---
kvm_guest_exit() calls account_system_vtime()  but this function is
empty i.e. does nothing (include/linux/hardirq.h)

Basically I want to know how timing info is passed to the guests.

Thanks
Arn

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux