/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | hyperv_clock.c | 16 volatile s64 tsc_offset; member 81 return mul_u64_u64_shr64(rdtsc(), tsc_page->tsc_scale) + tsc_page->tsc_offset; in get_tscpage_ts() 103 u64 tsc_scale, tsc_offset; in guest_main() local 118 GUEST_ASSERT(tsc_page->tsc_offset == 0); in guest_main() 132 tsc_offset = tsc_page->tsc_offset; in guest_main() 139 GUEST_ASSERT(tsc_page->tsc_offset != tsc_offset); in guest_main() 149 tsc_offset = tsc_page->tsc_offset; in guest_main() 152 GUEST_ASSERT(tsc_page->tsc_offset == tsc_offset); in guest_main() 170 GUEST_ASSERT(tsc_page->tsc_offset == 0); in guest_main()
|
/linux/tools/testing/selftests/kvm/ |
H A D | system_counter_offset_test.c | 20 uint64_t tsc_offset; member 39 &test->tsc_offset); in setup_system_counter() 49 return rdtsc() + test->tsc_offset; in host_read_guest_system_counter()
|
/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-decoder.c | 2505 decoder->packet.payload -= vmcs_info->tsc_offset; in intel_pt_translate_vm_tsc() 2519 vmcs_info->tsc_offset); 2523 uint64_t tsc_offset) in intel_pt_translate_vm_tsc_offset() 2527 .tsc_offset = tsc_offset in intel_pt_translate_vm_tsc_offset() 2546 vmcs_info->vmcs, vmcs_info->tsc_offset); 2573 if (vmcs_info && vmcs_info->tsc_offset) { in intel_pt_vm_tm_corr_first_tsc() 2588 if (vmcs_info && vmcs_info->tsc_offset) in intel_pt_vm_tm_corr_first_tsc() 2600 uint64_t tsc_offset = 0; in intel_pt_vm_tm_corr_tsc() 2645 tsc_offset in intel_pt_vm_tm_corr_tsc() 2521 intel_pt_translate_vm_tsc_offset(struct intel_pt_decoder * decoder,uint64_t tsc_offset) intel_pt_translate_vm_tsc_offset() argument 2598 uint64_t tsc_offset = 0; intel_pt_vm_tm_corr_tsc() local [all...] |
H A D | intel-pt-decoder.h | 211 uint64_t tsc_offset; member
|
/linux/include/clocksource/ |
H A D | hyperv_timer.h | 77 offset = READ_ONCE(tsc_pg->tsc_offset); in hv_read_tsc_page_tsc()
|
/linux/arch/x86/kvm/vmx/ |
H A D | vmcs12.h | 43 u64 tsc_offset; member 227 CHECK_OFFSET(tsc_offset, 88); in vmx_check_vmcs12_offsets()
|
H A D | vmcs12.c | 39 FIELD64(TSC_OFFSET, tsc_offset),
|
H A D | hyperv_evmcs.c | 65 EVMCS1_FIELD(TSC_OFFSET, tsc_offset,
|
/linux/arch/x86/kvm/ |
H A D | debugfs.c | 36 *val = vcpu->arch.tsc_offset; in vcpu_get_tsc_offset()
|
H A D | hyperv.c | 584 + hv->tsc_ref.tsc_offset; in get_time_ref_counter() 1136 tsc_ref->tsc_offset = hv_clock->system_time; in compute_tsc_page_parameters() 1137 do_div(tsc_ref->tsc_offset, 100); in compute_tsc_page_parameters() 1138 tsc_ref->tsc_offset -= in compute_tsc_page_parameters()
|
H A D | x86.c | 2598 vcpu->arch.tsc_offset = kvm_calc_nested_tsc_offset( in kvm_vcpu_write_tsc_offset() 2603 vcpu->arch.tsc_offset = l1_offset; in kvm_vcpu_write_tsc_offset() 2762 u64 tsc_offset = vcpu->arch.l1_tsc_offset; in adjust_tsc_offset_guest() local 2763 kvm_vcpu_write_tsc_offset(vcpu, tsc_offset + adjustment); in adjust_tsc_offset_guest() 4257 offset = vcpu->arch.tsc_offset; in kvm_get_msr_common()
|
/linux/tools/testing/selftests/kvm/include/x86_64/ |
H A D | svm.h | 93 u64 tsc_offset; member
|
H A D | evmcs.h | 117 u64 tsc_offset; member 355 *value = current_evmcs->tsc_offset; in evmcs_vmread() 778 current_evmcs->tsc_offset = value; in evmcs_vmwrite()
|
/linux/include/asm-generic/ |
H A D | hyperv-tlfs.h | 102 volatile s64 tsc_offset; member
|
/linux/arch/x86/include/asm/ |
H A D | hyperv-tlfs.h | 524 u64 tsc_offset; member
|
H A D | svm.h | 129 u64 tsc_offset; member
|
/linux/Documentation/virt/kvm/x86/ |
H A D | nested-vmx.rst | 101 u64 tsc_offset;
|
/linux/arch/x86/kvm/svm/ |
H A D | svm.h | 153 u64 tsc_offset; member
|
H A D | svm.c | 1153 return svm->nested.ctl.tsc_offset; in svm_get_l2_tsc_offset() 1167 svm->vmcb01.ptr->control.tsc_offset = vcpu->arch.l1_tsc_offset; in svm_write_tsc_offset() 1168 svm->vmcb->control.tsc_offset = vcpu->arch.tsc_offset; in svm_write_tsc_offset() 3386 pr_err("%-20s%016llx\n", "tsc_offset:", control->tsc_offset); in dump_vmcb()
|
/linux/tools/perf/util/ |
H A D | intel-pt.c | 340 v->tsc_offset = dflt_tsc_offset; in intel_pt_findnew_vmcs() 4053 u64 tsc_offset, vmcs; in intel_pt_parse_vm_tm_corr_arg() local 4062 tsc_offset = strtoull(p, &p, 0); in intel_pt_parse_vm_tm_corr_arg() 4067 pt->dflt_tsc_offset = tsc_offset; in intel_pt_parse_vm_tm_corr_arg() 4078 vmcs_info = intel_pt_findnew_vmcs(&pt->vmcs_info, vmcs, tsc_offset); in intel_pt_parse_vm_tm_corr_arg()
|