Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kvmclock.c Create Date:2022-07-28 08:45:07
Last Modify:2020-03-18 12:41:45 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The wallclock is the time of day when we booted. Since then, some time may* have elapsed since the hypervisor wrote the data. So we try to account for* that with system time

Proto:static void kvm_get_wallclock(struct timespec64 *now)

Type:void

Parameter:

TypeParameterName
struct timespec64 *now
74  wrmsrl(msr_kvm_wall_clock, slow_virt_to_phys( & wall_clock))
75  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
76  pvclock_read_wallclock( & wall_clock, this_cpu_pvti(), now)
77  preempt_enable()