Function report |
Source Code:arch\x86\kernel\kvmclock.c |
Create Date:2022-07-28 08:45:17 |
| Last Modify:2020-03-18 12:41:45 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kvmclock_init
Proto:void __init kvmclock_init(void)
Type:void
Parameter:Nothing
| 312 | If Not kvm_para_available() || Not kvmclock Then Return |
| 318 | Else if Not kvm_para_has_feature(KVM_FEATURE_CLOCKSOURCE) Then |
| 319 | Return |
| 324 | Return |
| 327 | pr_info("kvm-clock: Using msrs %x and %x", msr_kvm_system_time, msr_kvm_wall_clock) |
| 330 | this_cpu_write(hv_clock_per_cpu, & hv_clock_boot[0]) |
| 331 | kvm_register_clock("primary cpu clock") |
| 337 | flags = pvclock_read_flags( & pvti) |
| 340 | calibrate_tsc = If we don't do that, there is the possibility that the guest* will calibrate under heavy load - thus, getting a lower lpj -* and execute the delays themselves without load |
| 341 | calibrate_cpu = If we don't do that, there is the possibility that the guest* will calibrate under heavy load - thus, getting a lower lpj -* and execute the delays themselves without load |
| 342 | get_wallclock = 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 |
| 349 | shutdown = kvm_shutdown |
| 353 | kvm_get_preset_lpj() |
| 363 | If boot_cpu_has(TSC ticks at a constant rate ) && boot_cpu_has(TSC does not stop in C states ) && Not check_tsc_unstable() Then rating = 299 |
| 368 | clocksource_register_hz( & kvm_clock, NSEC_PER_SEC) |
| 369 | name = "KVM" |
| Name | Describe |
|---|---|
| kvm_init_platform |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |