Home
last modified time | relevance | path

Searched refs:apic (Results 1 – 25 of 36) sorted by relevance

12

/linux/arch/x86/kernel/apic/
H A Dinit.c15 DEFINE_STATIC_CALL_NULL(apic_call_##__cb, *apic->__cb)
41 apic->__cb = __x86_apic_override.__cb
62 static_call_update(apic_call_##__cb, *apic->__cb)
86 apic->native_eoi = apic->eoi; in apic_setup_apic_calls()
91 void __init apic_install_driver(struct apic *driver) in apic_install_driver()
93 if (apic == driver) in apic_install_driver()
96 apic = driver; in apic_install_driver()
98 if (IS_ENABLED(CONFIG_X86_X2APIC) && apic->x2apic_set_max_apicid) in apic_install_driver()
99 apic->max_apic_id = x2apic_max_apicid; in apic_install_driver()
102 if (!apic->native_eoi) in apic_install_driver()
[all …]
H A Dapic_flat_64.c32 static struct apic apic_physflat __ro_after_init = {
67 struct apic *apic __ro_after_init = &apic_physflat;
68 EXPORT_SYMBOL_GPL(apic);
H A Dx2apic_cluster.c8 #include <asm/apic.h>
111 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in prefill_clustermask()
147 u32 apicid = apic->cpu_present_to_apicid(cpu_i); in alloc_clustermask()
178 u32 phys_apicid = apic->cpu_present_to_apicid(cpu); in x2apic_prepare_cpu()
227 static struct apic apic_x2apic_cluster __ro_after_init = {
H A Dprobe_64.c19 struct apic **drv; in x86_64_probe_apic()
33 struct apic **drv; in default_acpi_madt_oem_check()
H A DMakefile10 obj-$(CONFIG_X86_LOCAL_APIC) += apic.o apic_common.o apic_noop.o ipi.o vector.o init.o
H A Dx2apic_uv_x.c57 static struct apic apic_x2apic_uv_x;
750 return apic == &apic_x2apic_uv_x; in uv_probe()
753 static struct apic apic_x2apic_uv_x __ro_after_init = {
/linux/arch/x86/xen/
H A Dapic.c14 static unsigned int xen_io_apic_read(unsigned apic, unsigned reg) in xen_io_apic_read() argument
19 apic_op.apic_physbase = mpc_ioapic_addr(apic); in xen_io_apic_read()
29 return apic << 24; in xen_io_apic_read()
113 static struct apic xen_pv_apic __ro_after_init = {
/linux/arch/x86/kvm/svm/
H A Davic.c157 if (x2avic_enabled && (!vcpu || apic_x2apic_mode(vcpu->arch.apic))) in __avic_get_max_physical_id()
222 if (x2avic_enabled && apic_x2apic_mode(svm->vcpu.arch.apic)) { in avic_activate_vmcb()
395 return __sme_set(__pa(svm->vcpu.arch.apic->regs)); in avic_get_backing_page_address()
434 vcpu->arch.apic->apicv_active = false; in avic_init_backing_page()
441 if (WARN_ON_ONCE(!vcpu->arch.apic->regs)) in avic_init_backing_page()
498 vcpu->arch.apic->irr_pending = true; in avic_kick_vcpu()
653 struct kvm_lapic *apic = vcpu->arch.apic; in avic_incomplete_ipi_interception() local
675 kvm_apic_send_ipi(apic, icrl, icrh); in avic_incomplete_ipi_interception()
683 avic_kick_target_vcpus(vcpu->kvm, apic, icrl, icrh, index); in avic_incomplete_ipi_interception()
736 flat = kvm_lapic_get_reg(vcpu->arch.apic, APIC_DFR) == APIC_DFR_FLAT; in avic_ldr_write()
[all …]
H A Dnested.c1732 struct kvm_lapic *apic = vcpu->arch.apic; in svm_check_nested_events()
1750 test_bit(KVM_APIC_INIT, &apic->pending_events)) { in svm_check_nested_events()
1723 struct kvm_lapic *apic = vcpu->arch.apic; svm_check_nested_events() local
/linux/arch/x86/include/asm/
H A Dio_apic.h162 extern unsigned int native_io_apic_read(unsigned int apic, unsigned int reg);
165 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg) in io_apic_read() argument
167 return x86_apic_ops.io_apic_read(apic, reg); in io_apic_read()
H A Dkvm_host.h33 #include <asm/apic.h>
739 struct kvm_lapic *apic; /* kernel irqchip context */
1641 void (*deliver_interrupt)(struct kvm_lapic *apic, int delivery_mode,
733 struct kvm_lapic *apic; /* kernel irqchip context */ global() member
/linux/arch/x86/kernel/cpu/mce/
H A Damd.c22 #include <asm/apic.h>
402 static bool lvt_off_valid(struct threshold_block *b, int apic, u32 lo, u32 hi) in lvt_off_valid() argument
414 if (apic < 0) { in lvt_off_valid()
421 if (apic != msr) { in lvt_off_valid()
424 b->cpu, apic, b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
/linux/lib/zstd/common/
H A Dcpu.h139 D(apic, 9)
/linux/arch/x86/platform/uv/
H A Duv_irq.c39 entry->dest_mode = apic->dest_mode_logical; in uv_program_mmr()
/linux/arch/x86/kvm/
H A Dtrace.h666 TP_PROTO(struct kvm_lapic *apic, int vector),
667 TP_ARGS(apic, vector),
675 __entry->apicid = apic->vcpu->vcpu_id;
683 TP_PROTO(struct kvm_lapic *apic, int vector),
684 TP_ARGS(apic, vector),
692 __entry->apicid = apic->vcpu->vcpu_id;
H A Dx86.c2705 if (vcpu->arch.apic->guest_apic_protected) in kvm_vcpu_ioctl_set_lapic()
2718 if (vcpu->arch.apic->guest_apic_protected) in kvm_is_interrupt_allowed()
2875 kvm_apic_local_deliver(vcpu->arch.apic, APIC_LVTCMCI); in kvm_vcpu_ioctl_x86_set_mce()
3109 vcpu->arch.apic->sipi_vector = events->sipi_vector; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3135 set_bit(KVM_APIC_INIT, &vcpu->arch.apic->pending_events); in kvm_vcpu_ioctl_x86_set_vcpu_events()
3137 clear_bit(KVM_APIC_INIT, &vcpu->arch.apic->pending_events); in kvm_vcpu_ioctl_x86_set_vcpu_events()
4794 !kvm_iodevice_write(vcpu, &vcpu->arch.apic->dev, addr, n, v)) in kvm_mmu_gva_to_gpa_read()
4814 !kvm_iodevice_read(vcpu, &vcpu->arch.apic->dev, in kvm_mmu_gva_to_gpa_system()
7904 struct kvm_lapic *apic = vcpu->arch.apic; in __kvm_set_or_clear_apicv_inhibit()
7835 struct kvm_lapic *apic = vcpu->arch.apic; __kvm_vcpu_update_apicv() local
[all...]
H A Dpmu.c822 kvm_apic_local_deliver(vcpu->arch.apic, APIC_LVTPC); in kvm_pmu_deliver_pmi()
1373 perf_load_guest_lvtpc(kvm_lapic_get_reg(vcpu->arch.apic, APIC_LVTPC)); in kvm_mediated_pmu_load()
/linux/arch/x86/hyperv/
H A Dhv_crash.c396 apic->send_IPI_allbutself(NMI_VECTOR); in hv_crash_stop_other_cpus()
/linux/arch/x86/kvm/vmx/
H A Dtdx.c685 vcpu->arch.apic->guest_apic_protected = true; in tdx_vcpu_create()
1104 apic->send_IPI_self(POSTED_INTR_VECTOR); in tdx_vcpu_run()
1106 if (pi_test_pir(kvm_lapic_get_reg(vcpu->arch.apic, APIC_LVTT) & in tdx_vcpu_run()
1952 void tdx_deliver_interrupt(struct kvm_lapic *apic, int delivery_mode, in tdx_is_sept_violation_unexpected_pending()
1955 struct kvm_vcpu *vcpu = apic->vcpu; in tdx_is_sept_violation_unexpected_pending()
1935 tdx_deliver_interrupt(struct kvm_lapic * apic,int delivery_mode,int trig_mode,int vector) tdx_deliver_interrupt() argument
H A Dnested.c928 * virtualize apic access must be disabled. in nested_vmx_check_apicv_controls()
4318 struct kvm_lapic *apic = vcpu->arch.apic; in vmx_check_nested_events()
4348 test_bit(KVM_APIC_INIT, &apic->pending_events)) { in vmx_check_nested_events()
4352 clear_bit(KVM_APIC_INIT, &apic->pending_events); in vmx_check_nested_events()
4362 test_bit(KVM_APIC_SIPI, &apic->pending_events)) { in vmx_check_nested_events()
4366 clear_bit(KVM_APIC_SIPI, &apic->pending_events); in vmx_check_nested_events()
4369 apic->sipi_vector & 0xFFUL); in vmx_check_nested_events()
4310 struct kvm_lapic *apic = vcpu->arch.apic; vmx_check_nested_events() local
H A Dvmx.c31 #include <asm/apic.h>
4436 if (!vcpu->arch.apic->apicv_active) in vmx_deliver_interrupt()
4443 void vmx_deliver_interrupt(struct kvm_lapic *apic, int delivery_mode, in vmx_deliver_interrupt()
4446 struct kvm_vcpu *vcpu = apic->vcpu; in vmx_deliver_interrupt()
4449 kvm_lapic_set_irr(vector, apic);
5014 __pa(vcpu->arch.apic->regs)); in __vmx_vcpu_reset()
7039 * the IRR (unlike apic->irr_pending). in vmx_hwapic_isr_update()
8242 struct kvm_timer *ktimer = &vcpu->arch.apic->lapic_timer; in vmx_check_intercept()
8608 * set_apic_access_page_addr() is used to reload apic access in vmx_get_untagged_addr()
4433 vmx_deliver_interrupt(struct kvm_lapic * apic,int delivery_mode,int trig_mode,int vector) vmx_deliver_interrupt() argument
/linux/arch/x86/kernel/cpu/
H A Dmshyperv.c29 #include <asm/apic.h>
415 apic->wakeup_secondary_cpu_64 = hv_snp_boot_ap;
705 * Setup the hook to get control post apic initialization. in ms_hyperv_init_platform()
/linux/Documentation/virt/kvm/x86/
H A Dmsr.rst318 injection. Value of 1 means that guest can skip writing EOI to the apic
336 whether it can skip EOI apic write and between guest
/linux/tools/testing/selftests/kvm/
H A DMakefile.kvm22 LIBKVM_x86 += lib/x86/apic.c
/linux/arch/x86/events/amd/
H A Dcore.c1340 .apic = 1,

12