Home
last modified time | relevance | path

Searched refs:MSR_IA32_APICBASE (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/tools/testing/selftests/kvm/lib/x86_64/
Dapic.c10 wrmsr(MSR_IA32_APICBASE, in apic_disable()
11 rdmsr(MSR_IA32_APICBASE) & in apic_disable()
17 uint64_t val = rdmsr(MSR_IA32_APICBASE); in xapic_enable()
22 wrmsr(MSR_IA32_APICBASE, in xapic_enable()
23 rdmsr(MSR_IA32_APICBASE) | MSR_IA32_APICBASE_ENABLE); in xapic_enable()
25 wrmsr(MSR_IA32_APICBASE, val | MSR_IA32_APICBASE_ENABLE); in xapic_enable()
39 wrmsr(MSR_IA32_APICBASE, rdmsr(MSR_IA32_APICBASE) | in x2apic_enable()
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Drecalc_apic_map_test.c58 vcpu_set_msr(vcpus[i], MSR_IA32_APICBASE, LAPIC_X2APIC); in main()
64 vcpu_set_msr(vcpuN, MSR_IA32_APICBASE, LAPIC_X2APIC); in main()
65 vcpu_set_msr(vcpuN, MSR_IA32_APICBASE, LAPIC_DISABLED); in main()
Dsmm_test.c71 uint64_t apicbase = rdmsr(MSR_IA32_APICBASE); in guest_code()
77 wrmsr(MSR_IA32_APICBASE, apicbase | X2APIC_ENABLE); in guest_code()
Dxapic_state_test.c140 vcpu_set_msr(vcpu, MSR_IA32_APICBASE, apic_base); in __test_apic_id()
173 apic_base = vcpu_get_msr(vcpus[i], MSR_IA32_APICBASE); in test_apic_id()
Ducna_injection_test.c74 uint64_t msr = rdmsr(MSR_IA32_APICBASE); in verify_apic_base_addr()
Dxapic_ipi_test.c85 uint64_t msr = rdmsr(MSR_IA32_APICBASE); in verify_apic_base_addr()
/linux-6.6.21/tools/testing/selftests/kvm/include/x86_64/
Dapic.h18 #define MSR_IA32_APICBASE 0x0000001b macro
70 return rdmsr(MSR_IA32_APICBASE) & MSR_IA32_APICBASE_BSP; in get_bsp_flag()
/linux-6.6.21/arch/x86/kernel/apic/
Dapic.c1207 rdmsr(MSR_IA32_APICBASE, l, h); in disable_local_APIC()
1209 wrmsr(MSR_IA32_APICBASE, l, h); in disable_local_APIC()
1745 rdmsrl(MSR_IA32_APICBASE, msr); in __x2apic_disable()
1749 wrmsrl(MSR_IA32_APICBASE, msr & ~(X2APIC_ENABLE | XAPIC_ENABLE)); in __x2apic_disable()
1750 wrmsrl(MSR_IA32_APICBASE, msr & ~X2APIC_ENABLE); in __x2apic_disable()
1758 rdmsrl(MSR_IA32_APICBASE, msr); in __x2apic_enable()
1761 wrmsrl(MSR_IA32_APICBASE, msr | X2APIC_ENABLE); in __x2apic_enable()
1990 rdmsr(MSR_IA32_APICBASE, l, h); in apic_verify()
2013 rdmsr(MSR_IA32_APICBASE, l, h); in apic_force_enable()
2018 wrmsr(MSR_IA32_APICBASE, l, h); in apic_force_enable()
[all …]
/linux-6.6.21/arch/x86/include/asm/
Dapic.h114 if (rdmsrl_safe(MSR_IA32_APICBASE, &msr)) in apic_is_x2apic_enabled()
Dmsr-index.h789 #define MSR_IA32_APICBASE 0x0000001b macro
/linux-6.6.21/arch/x86/kernel/
Dhead_64.S254 mov $MSR_IA32_APICBASE, %ecx
/linux-6.6.21/tools/arch/x86/include/asm/
Dmsr-index.h783 #define MSR_IA32_APICBASE 0x0000001b macro
/linux-6.6.21/arch/x86/xen/
Denlighten_pv.c1025 case MSR_IA32_APICBASE: in xen_do_read_msr()
/linux-6.6.21/arch/x86/kvm/
Dx86.c3727 case MSR_IA32_APICBASE: in kvm_set_msr_common()
4157 case MSR_IA32_APICBASE: in kvm_get_msr_common()
/linux-6.6.21/Documentation/virt/kvm/
Dapi.rst1966 (reported by MSR_IA32_APICBASE) of its VCPU. x2APIC stores APIC ID in
1970 be called after MSR_IA32_APICBASE has been set with KVM_SET_MSR.