Home
last modified time | relevance | path

Searched refs:X2APIC_ENABLE (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/tools/testing/selftests/kvm/x86_64/
Dxapic_state_test.c144 expected = apic_base & X2APIC_ENABLE ? vcpu->id : vcpu->id << 24; in __test_apic_id()
149 (apic_base & X2APIC_ENABLE) ? "x2APIC" : "xAPIC", in __test_apic_id()
177 TEST_ASSERT(!(apic_base & X2APIC_ENABLE), in test_apic_id()
181 __test_apic_id(vcpus[i], apic_base | X2APIC_ENABLE); in test_apic_id()
Drecalc_apic_map_test.c18 #define LAPIC_X2APIC (MSR_IA32_APICBASE_ENABLE | X2APIC_ENABLE)
Dsmm_test.c77 wrmsr(MSR_IA32_APICBASE, apicbase | X2APIC_ENABLE); in guest_code()
/Linux-v6.6/arch/x86/kvm/
Dlapic.h27 LAPIC_MODE_INVALID = X2APIC_ENABLE,
29 LAPIC_MODE_X2APIC = MSR_IA32_APICBASE_ENABLE | X2APIC_ENABLE,
223 return apic->vcpu->arch.apic_base & X2APIC_ENABLE; in apic_x2apic_mode()
273 return apic_base & (MSR_IA32_APICBASE_ENABLE | X2APIC_ENABLE); in kvm_apic_mode()
Dlapic.c2554 if ((old_value ^ value) & X2APIC_ENABLE) { in kvm_lapic_set_base()
2555 if (value & X2APIC_ENABLE) in kvm_lapic_set_base()
2561 if ((old_value ^ value) & (MSR_IA32_APICBASE_ENABLE | X2APIC_ENABLE)) { in kvm_lapic_set_base()
Dx86.c490 (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) ? 0 : X2APIC_ENABLE); in kvm_set_apic_base()
/Linux-v6.6/tools/testing/selftests/kvm/include/x86_64/
Dapic.h26 #define X2APIC_ENABLE (1UL << 10) macro
/Linux-v6.6/arch/x86/kernel/apic/
Dapic.c1744 if (!(msr & X2APIC_ENABLE)) in __x2apic_disable()
1747 wrmsrl(MSR_IA32_APICBASE, msr & ~(X2APIC_ENABLE | XAPIC_ENABLE)); in __x2apic_disable()
1748 wrmsrl(MSR_IA32_APICBASE, msr & ~X2APIC_ENABLE); in __x2apic_disable()
1757 if (msr & X2APIC_ENABLE) in __x2apic_enable()
1759 wrmsrl(MSR_IA32_APICBASE, msr | X2APIC_ENABLE); in __x2apic_enable()
/Linux-v6.6/arch/x86/include/asm/
Dapicdef.h146 #define X2APIC_ENABLE BIT(10) macro
Dapic.h116 return msr & X2APIC_ENABLE; in apic_is_x2apic_enabled()
/Linux-v6.6/arch/x86/kernel/
Dhead_64.S256 testl $X2APIC_ENABLE, %eax
/Linux-v6.6/arch/x86/xen/
Denlighten_pv.c1026 val &= ~X2APIC_ENABLE; in xen_do_read_msr()
/Linux-v6.6/arch/x86/kvm/vmx/
Dnested.c859 if (CC(vcpu->arch.apic_base & X2APIC_ENABLE && e->index >> 8 == 0x8)) in nested_vmx_msr_check_common()