Home
last modified time | relevance | path

Searched refs:hv_clock (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/ptp/
Dptp_kvm.c37 static struct pvclock_vsyscall_time_info *hv_clock; variable
56 src = &hv_clock[cpu].pvti; in ptp_kvm_get_time_fn()
185 hv_clock = pvclock_get_pvti_cpu0_va(); in ptp_kvm_init()
187 if (!hv_clock) in ptp_kvm_init()
/Linux-v4.19/arch/x86/kvm/
Dhyperv.c861 static bool compute_tsc_page_parameters(struct pvclock_vcpu_time_info *hv_clock, in compute_tsc_page_parameters() argument
866 if (!(hv_clock->flags & PVCLOCK_TSC_STABLE_BIT)) in compute_tsc_page_parameters()
875 max_mul = 100ull << (32 - hv_clock->tsc_shift); in compute_tsc_page_parameters()
876 if (hv_clock->tsc_to_system_mul >= max_mul) in compute_tsc_page_parameters()
884 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
885 hv_clock->tsc_to_system_mul, in compute_tsc_page_parameters()
888 tsc_ref->tsc_offset = hv_clock->system_time; in compute_tsc_page_parameters()
891 mul_u64_u64_shr(hv_clock->tsc_timestamp, tsc_ref->tsc_scale, 64); in compute_tsc_page_parameters()
896 struct pvclock_vcpu_time_info *hv_clock) in kvm_hv_setup_tsc_page() argument
930 if (!compute_tsc_page_parameters(hv_clock, &hv->tsc_ref)) in kvm_hv_setup_tsc_page()
Dhyperv.h89 struct pvclock_vcpu_time_info *hv_clock);
Dx86.c1949 struct pvclock_vcpu_time_info hv_clock; in get_kvmclock_ns() local
1958 hv_clock.tsc_timestamp = ka->master_cycle_now; in get_kvmclock_ns()
1959 hv_clock.system_time = ka->master_kernel_ns + ka->kvmclock_offset; in get_kvmclock_ns()
1967 &hv_clock.tsc_shift, in get_kvmclock_ns()
1968 &hv_clock.tsc_to_system_mul); in get_kvmclock_ns()
1969 ret = __pvclock_read_cycles(&hv_clock, rdtsc()); in get_kvmclock_ns()
2006 vcpu->hv_clock.version = guest_hv_clock.version + 1; in kvm_setup_pvclock_page()
2008 &vcpu->hv_clock, in kvm_setup_pvclock_page()
2009 sizeof(vcpu->hv_clock.version)); in kvm_setup_pvclock_page()
2014 vcpu->hv_clock.flags |= (guest_hv_clock.flags & PVCLOCK_GUEST_STOPPED); in kvm_setup_pvclock_page()
[all …]
/Linux-v4.19/arch/x86/include/asm/
Dkvm_host.h612 struct pvclock_vcpu_time_info hv_clock; member