Home
last modified time | relevance | path

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

/arch/x86/kvm/
Dhyperv.h92 struct pvclock_vcpu_time_info *hv_clock);
Dhyperv.c898 static bool compute_tsc_page_parameters(struct pvclock_vcpu_time_info *hv_clock, in compute_tsc_page_parameters() argument
903 if (!(hv_clock->flags & PVCLOCK_TSC_STABLE_BIT)) in compute_tsc_page_parameters()
912 max_mul = 100ull << (32 - hv_clock->tsc_shift); in compute_tsc_page_parameters()
913 if (hv_clock->tsc_to_system_mul >= max_mul) in compute_tsc_page_parameters()
921 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
922 hv_clock->tsc_to_system_mul, in compute_tsc_page_parameters()
925 tsc_ref->tsc_offset = hv_clock->system_time; in compute_tsc_page_parameters()
928 mul_u64_u64_shr(hv_clock->tsc_timestamp, tsc_ref->tsc_scale, 64); in compute_tsc_page_parameters()
933 struct pvclock_vcpu_time_info *hv_clock) in kvm_hv_setup_tsc_page() argument
967 if (!compute_tsc_page_parameters(hv_clock, &hv->tsc_ref)) in kvm_hv_setup_tsc_page()
Dx86.c2226 struct pvclock_vcpu_time_info hv_clock; in get_kvmclock_ns() local
2235 hv_clock.tsc_timestamp = ka->master_cycle_now; in get_kvmclock_ns()
2236 hv_clock.system_time = ka->master_kernel_ns + ka->kvmclock_offset; in get_kvmclock_ns()
2244 &hv_clock.tsc_shift, in get_kvmclock_ns()
2245 &hv_clock.tsc_to_system_mul); in get_kvmclock_ns()
2246 ret = __pvclock_read_cycles(&hv_clock, rdtsc()); in get_kvmclock_ns()
2283 vcpu->hv_clock.version = guest_hv_clock.version + 1; in kvm_setup_pvclock_page()
2285 &vcpu->hv_clock, in kvm_setup_pvclock_page()
2286 sizeof(vcpu->hv_clock.version)); in kvm_setup_pvclock_page()
2291 vcpu->hv_clock.flags |= (guest_hv_clock.flags & PVCLOCK_GUEST_STOPPED); in kvm_setup_pvclock_page()
[all …]
/arch/x86/include/asm/
Dkvm_host.h662 struct pvclock_vcpu_time_info hv_clock; member