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.c919 static bool compute_tsc_page_parameters(struct pvclock_vcpu_time_info *hv_clock, in compute_tsc_page_parameters() argument
924 if (!(hv_clock->flags & PVCLOCK_TSC_STABLE_BIT)) in compute_tsc_page_parameters()
933 max_mul = 100ull << (32 - hv_clock->tsc_shift); in compute_tsc_page_parameters()
934 if (hv_clock->tsc_to_system_mul >= max_mul) in compute_tsc_page_parameters()
942 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
943 hv_clock->tsc_to_system_mul, in compute_tsc_page_parameters()
946 tsc_ref->tsc_offset = hv_clock->system_time; in compute_tsc_page_parameters()
949 mul_u64_u64_shr(hv_clock->tsc_timestamp, tsc_ref->tsc_scale, 64); in compute_tsc_page_parameters()
954 struct pvclock_vcpu_time_info *hv_clock) in kvm_hv_setup_tsc_page() argument
988 if (!compute_tsc_page_parameters(hv_clock, &hv->tsc_ref)) in kvm_hv_setup_tsc_page()
Dx86.c2301 struct pvclock_vcpu_time_info hv_clock; in get_kvmclock_ns() local
2310 hv_clock.tsc_timestamp = ka->master_cycle_now; in get_kvmclock_ns()
2311 hv_clock.system_time = ka->master_kernel_ns + ka->kvmclock_offset; in get_kvmclock_ns()
2319 &hv_clock.tsc_shift, in get_kvmclock_ns()
2320 &hv_clock.tsc_to_system_mul); in get_kvmclock_ns()
2321 ret = __pvclock_read_cycles(&hv_clock, rdtsc()); in get_kvmclock_ns()
2358 vcpu->hv_clock.version = guest_hv_clock.version + 1; in kvm_setup_pvclock_page()
2360 &vcpu->hv_clock, in kvm_setup_pvclock_page()
2361 sizeof(vcpu->hv_clock.version)); in kvm_setup_pvclock_page()
2366 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