Home
last modified time | relevance | path

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

/arch/x86/kvm/
Dhyperv.h124 struct pvclock_vcpu_time_info *hv_clock);
Dhyperv.c1042 static bool compute_tsc_page_parameters(struct pvclock_vcpu_time_info *hv_clock, in compute_tsc_page_parameters() argument
1047 if (!(hv_clock->flags & PVCLOCK_TSC_STABLE_BIT)) in compute_tsc_page_parameters()
1056 max_mul = 100ull << (32 - hv_clock->tsc_shift); in compute_tsc_page_parameters()
1057 if (hv_clock->tsc_to_system_mul >= max_mul) in compute_tsc_page_parameters()
1065 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
1066 hv_clock->tsc_to_system_mul, in compute_tsc_page_parameters()
1069 tsc_ref->tsc_offset = hv_clock->system_time; in compute_tsc_page_parameters()
1072 mul_u64_u64_shr(hv_clock->tsc_timestamp, tsc_ref->tsc_scale, 64); in compute_tsc_page_parameters()
1077 struct pvclock_vcpu_time_info *hv_clock) in kvm_hv_setup_tsc_page() argument
1111 if (!compute_tsc_page_parameters(hv_clock, &hv->tsc_ref)) in kvm_hv_setup_tsc_page()
Dx86.c2625 struct pvclock_vcpu_time_info hv_clock; in get_kvmclock_ns() local
2634 hv_clock.tsc_timestamp = ka->master_cycle_now; in get_kvmclock_ns()
2635 hv_clock.system_time = ka->master_kernel_ns + ka->kvmclock_offset; in get_kvmclock_ns()
2643 &hv_clock.tsc_shift, in get_kvmclock_ns()
2644 &hv_clock.tsc_to_system_mul); in get_kvmclock_ns()
2645 ret = __pvclock_read_cycles(&hv_clock, rdtsc()); in get_kvmclock_ns()
2682 vcpu->hv_clock.version = guest_hv_clock.version + 1; in kvm_setup_pvclock_page()
2684 &vcpu->hv_clock, in kvm_setup_pvclock_page()
2685 sizeof(vcpu->hv_clock.version)); in kvm_setup_pvclock_page()
2690 vcpu->hv_clock.flags |= (guest_hv_clock.flags & PVCLOCK_GUEST_STOPPED); in kvm_setup_pvclock_page()
[all …]
/arch/x86/include/asm/
Dkvm_host.h656 struct pvclock_vcpu_time_info hv_clock; member