Home
last modified time | relevance | path

Searched refs:MSR_IA32_TSC_ADJUST (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/tools/testing/selftests/kvm/x86_64/
Dtsc_msrs_test.c35 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
41 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
46 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code()
48 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
53 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
61 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code()
63 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
73 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val - HOST_ADJUST); in guest_code()
114 ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC_ADJUST), val); in main()
120 ASSERT_EQ(rounded_host_rdmsr(MSR_IA32_TSC_ADJUST), val); in main()
[all …]
Dvmx_tsc_adjust_test.c31 #ifndef MSR_IA32_TSC_ADJUST
32 #define MSR_IA32_TSC_ADJUST 0x3b macro
67 adjust = rdmsr(MSR_IA32_TSC_ADJUST); in check_ia32_tsc_adjust()
/Linux-v5.10/arch/x86/kernel/
Dtsc_sync.c66 rdmsrl(MSR_IA32_TSC_ADJUST, curval); in tsc_verify_tsc_adjust()
71 wrmsrl(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust()
103 wrmsrl(MSR_IA32_TSC_ADJUST, 0); in tsc_sanitize_first_cpu()
126 rdmsrl(MSR_IA32_TSC_ADJUST, bootval); in tsc_store_and_check_tsc_adjust()
148 rdmsrl(MSR_IA32_TSC_ADJUST, bootval); in tsc_store_and_check_tsc_adjust()
192 wrmsrl(MSR_IA32_TSC_ADJUST, ref->adjusted); in tsc_store_and_check_tsc_adjust()
488 wrmsrl(MSR_IA32_TSC_ADJUST, cur->adjusted); in check_tsc_sync_target()
Dtsc.c1062 rdmsrl(MSR_IA32_TSC_ADJUST, art_to_tsc_offset); in detect_art()
/Linux-v5.10/arch/x86/include/asm/
Dmsr-index.h614 #define MSR_IA32_TSC_ADJUST 0x0000003b macro
/Linux-v5.10/tools/arch/x86/include/asm/
Dmsr-index.h614 #define MSR_IA32_TSC_ADJUST 0x0000003b macro
/Linux-v5.10/arch/x86/kvm/
Dx86.c1268 MSR_IA32_TSC_ADJUST,
3081 case MSR_IA32_TSC_ADJUST: in kvm_set_msr_common()
3444 case MSR_IA32_TSC_ADJUST: in kvm_get_msr_common()
/Linux-v5.10/arch/x86/kvm/vmx/
Dvmx.c2106 case MSR_IA32_TSC_ADJUST: in vmx_set_msr()