Searched refs:hv_clock (Results 1 – 5 of 5) sorted by relevance
/linux/arch/x86/kvm/ |
H A D | hyperv.h | 182 struct pvclock_vcpu_time_info *hv_clock); 270 struct pvclock_vcpu_time_info *hv_clock) {} in kvm_hv_setup_tsc_page() argument
|
H A D | hyperv.c | 1109 static bool compute_tsc_page_parameters(struct pvclock_vcpu_time_info *hv_clock, in compute_tsc_page_parameters() argument 1114 if (!(hv_clock->flags & PVCLOCK_TSC_STABLE_BIT)) in compute_tsc_page_parameters() 1123 max_mul = 100ull << (32 - hv_clock->tsc_shift); in compute_tsc_page_parameters() 1124 if (hv_clock->tsc_to_system_mul >= max_mul) in compute_tsc_page_parameters() 1132 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters() 1133 hv_clock->tsc_to_system_mul, in compute_tsc_page_parameters() 1136 tsc_ref->tsc_offset = hv_clock->system_time; in compute_tsc_page_parameters() 1139 mul_u64_u64_shr(hv_clock->tsc_timestamp, tsc_ref->tsc_scale, 64); in compute_tsc_page_parameters() 1159 struct pvclock_vcpu_time_info *hv_clock) in kvm_hv_setup_tsc_page() argument 1204 if (!compute_tsc_page_parameters(hv_clock, &hv->tsc_ref)) in kvm_hv_setup_tsc_page()
|
H A D | x86.c | 3109 struct pvclock_vcpu_time_info hv_clock; in __get_kvmclock() local 3128 hv_clock.tsc_timestamp = ka->master_cycle_now; in __get_kvmclock() 3129 hv_clock.system_time = ka->master_kernel_ns + ka->kvmclock_offset; in __get_kvmclock() 3131 &hv_clock.tsc_shift, in __get_kvmclock() 3132 &hv_clock.tsc_to_system_mul); in __get_kvmclock() 3133 data->clock = __pvclock_read_cycles(&hv_clock, data->host_tsc); in __get_kvmclock() 3188 guest_hv_clock->version = vcpu->hv_clock.version = (guest_hv_clock->version + 1) | 1; in kvm_setup_guest_pvclock() 3192 vcpu->hv_clock.flags |= (guest_hv_clock->flags & PVCLOCK_GUEST_STOPPED); in kvm_setup_guest_pvclock() 3195 vcpu->hv_clock.flags |= PVCLOCK_GUEST_STOPPED; in kvm_setup_guest_pvclock() 3199 memcpy(guest_hv_clock, &vcpu->hv_clock, sizeof(*guest_hv_clock)); in kvm_setup_guest_pvclock() [all …]
|
H A D | xen.c | 176 if (vcpu->arch.hv_clock.version && vcpu->kvm->arch.use_master_clock && in kvm_xen_start_timer() 200 guest_now = __pvclock_read_cycles(&vcpu->arch.hv_clock, in kvm_xen_start_timer() 2272 entry->ecx = vcpu->arch.hv_clock.tsc_to_system_mul; in kvm_xen_update_tsc_info() 2273 entry->edx = vcpu->arch.hv_clock.tsc_shift; in kvm_xen_update_tsc_info()
|
/linux/arch/x86/include/asm/ |
H A D | kvm_host.h | 889 struct pvclock_vcpu_time_info hv_clock; member
|