| /hypervisor/arch/x86/ |
| A D | idt.S | 92 vector = 0x20 define 95 vector = vector + 1 define 212 __rsvd_vector %vector 217 excp_rsvd_\vector\(): 219 pushq $\vector 231 vector = 0x15 define 233 _rsvd_vector vector 234 vector = vector + 1 define 250 pushq $\vector 254 vector =0x20 label [all …]
|
| A D | irq.c | 32 uint32_t vector; member 63 vr = irqd->vector; in alloc_irq_vector() 66 __func__, irq, irqd->vector); in alloc_irq_vector() 75 irqd->vector = vr; in alloc_irq_vector() 109 vr = irqd->vector; in free_irq_vector() 110 irqd->vector = VECTOR_INVALID; in free_irq_vector() 132 ret = irq_data[irq].vector; in irq_to_vector() 148 spurious_handler(vector); in handle_spurious_interrupt() 186 uint32_t vr = ctx->vector; in dispatch_interrupt() 199 if (vr == irqd->vector) { in dispatch_interrupt() [all …]
|
| A D | lapic.c | 230 icr.bits.vector = (uint8_t)(cpu_startup_start_address >> 12U); in send_startup_ipi() 243 void send_dest_ipi_mask(uint32_t dest_mask, uint32_t vector) in send_dest_ipi_mask() argument 251 send_single_ipi(pcpu_id, vector); in send_dest_ipi_mask() 256 void send_single_ipi(uint16_t pcpu_id, uint32_t vector) in send_single_ipi() argument 262 msr_write(MSR_IA32_EXT_APIC_SELF_IPI, vector); in send_single_ipi() 268 icr.value_32.lo_32 = vector | (INTR_LAPIC_ICR_PHYSICAL << 11U); in send_single_ipi()
|
| A D | vtd.c | 742 uint32_t vector) in dmar_fault_msi_write() argument 748 data = DMAR_MSI_DELIVERY_LOWPRI | vector; in dmar_fault_msi_write() 867 uint32_t vector; in dmar_setup_interrupt() local 881 vector = irq_to_vector(dmar_unit->dmar_irq); in dmar_setup_interrupt() 882 dev_dbg(DBG_LEVEL_IOMMU, "irq#%d vector#%d for dmar_unit", dmar_unit->dmar_irq, vector); in dmar_setup_interrupt() 884 dmar_fault_msi_write(dmar_unit, vector); in dmar_setup_interrupt() 1364 irte_pi.bits.post.vector = irte->bits.remap.vector; in dmar_assign_irte()
|
| A D | ioapic.c | 204 rte.bits.vector = vr; in create_rte_for_legacy_irq() 230 rte.bits.vector = vr; in create_rte_for_gsi_irq()
|
| /hypervisor/arch/x86/guest/ |
| A D | virq.c | 87 if ((vector > 31U) || (vector == IDT_NMI)) { in get_exception_type() 89 } else if ((vector == IDT_DB) || (vector == IDT_BP) || (vector == IDT_OF)) { in get_exception_type() 91 } else if ((vector == IDT_DF) || (vector == IDT_MC)) { in get_exception_type() 144 uint32_t vector; in vcpu_do_pending_extint() local 157 vector & 0xFFU); in vcpu_do_pending_extint() 174 if ((vector == IDT_DE) || (vector == IDT_TS) || (vector == IDT_NP) || in get_excep_class() 175 (vector == IDT_SS) || (vector == IDT_GP)) { in get_excep_class() 177 } else if ((vector == IDT_PF) || (vector == IDT_VE)) { in get_excep_class() 194 if (vector >= 32U) { in vcpu_queue_exception() 213 vector = IDT_DF; in vcpu_queue_exception() [all …]
|
| A D | vlapic.c | 487 idx = vector >> 5U; in apicv_basic_accept_intr() 529 ASSERT(vector <= NR_MAX_VECTOR, "invalid vector %u", vector); in vlapic_accept_intr() 809 i = (vector >> 5U); in vlapic_process_eoi() 1275 idx = vector >> 5U; in vlapic_get_deliverable_intr() 1775 if (vector < 16U) { in vlapic_set_intr() 1926 icr.bits.vector = vmsi_data.bits.vector; in inject_msi_for_lapic_pt() 2319 uint32_t vector; in apicv_basic_has_pending_delivery_intr() local 2347 uint32_t vector; in vlapic_get_next_pending_intr() local 2351 return vector; in vlapic_get_next_pending_intr() 2456 uint32_t vector; in veoi_vmexit_handler() local [all …]
|
| A D | assign.c | 139 irte.bits.remap.vector = vector; in ptirq_build_physical_msi() 175 entry->pmsi.data.bits.vector = vector; in ptirq_build_physical_msi() 201 uint32_t dest, delmode, dest_mask, vector; in ptirq_build_physical_rte() local 246 vector = rte.bits.vector; in ptirq_build_physical_rte() 248 vector = irq_to_vector(phys_irq); in ptirq_build_physical_rte() 255 irte.bits.remap.vector = vector; in ptirq_build_physical_rte() 269 rte.ir_bits.vector = vector; in ptirq_build_physical_rte() 280 rte.bits.vector = vector; in ptirq_build_physical_rte() 553 entry->allocated_pirq, vmsi->data.bits.vector, in ptirq_softirq() 661 (uint32_t)info->data.bits.vector, hva2hpa(get_pi_desc(vcpu)), irte_idx); in ptirq_prepare_msix_remap() [all …]
|
| A D | vcpu.c | 175 void vcpu_set_eoi_exit_bitmap(struct acrn_vcpu *vcpu, uint32_t vector) in vcpu_set_eoi_exit_bitmap() argument 179 if (!bitmap_test_and_set_lock((uint16_t)(vector & 0x3fU), in vcpu_set_eoi_exit_bitmap() 180 &(vcpu->arch.eoi_exit_bitmap[(vector & 0xffU) >> 6U]))) { in vcpu_set_eoi_exit_bitmap() 185 void vcpu_clear_eoi_exit_bitmap(struct acrn_vcpu *vcpu, uint32_t vector) in vcpu_clear_eoi_exit_bitmap() argument 189 if (bitmap_test_and_clear_lock((uint16_t)(vector & 0x3fU), in vcpu_clear_eoi_exit_bitmap() 190 &(vcpu->arch.eoi_exit_bitmap[(vector & 0xffU) >> 6U]))) { in vcpu_clear_eoi_exit_bitmap()
|
| A D | vmexit.c | 230 uint32_t vector = vector_info & 0xffU; in vmexit_handler() local 238 (void)vcpu_queue_exception(vcpu, vector, err_code); in vmexit_handler()
|
| /hypervisor/include/arch/x86/asm/ |
| A D | lapic.h | 20 uint32_t vector:8; member 105 void send_dest_ipi_mask(uint32_t dest_mask, uint32_t vector); 113 void send_single_ipi(uint16_t pcpu_id, uint32_t vector);
|
| A D | irq.h | 86 uint32_t vector; /**< assigned vector */ member
|
| A D | apicreg.h | 200 uint8_t vector:8; member 212 uint32_t vector:8; member
|
| A D | vtd.h | 528 uint64_t vector:8; member 547 uint64_t vector:8; member
|
| /hypervisor/dm/ |
| A D | vioapic.c | 58 uint32_t vector, dest, delmode; in vioapic_generate_intr() local 78 vector = rte.bits.vector; in vioapic_generate_intr() 80 vlapic_receive_intr(vioapic->vm, level, dest, phys, delmode, vector, false); in vioapic_generate_intr() 436 vioapic_process_eoi(struct acrn_single_vioapic *vioapic, uint32_t vector) in vioapic_process_eoi() argument 442 if ((vector < VECTOR_DYNAMIC_START) || (vector > NR_MAX_VECTOR)) { in vioapic_process_eoi() 443 pr_err("vioapic_process_eoi: invalid vector %u", vector); in vioapic_process_eoi() 446 dev_dbg(DBG_LEVEL_VIOAPIC, "ioapic processing eoi for vector %u", vector); in vioapic_process_eoi() 451 if ((rte.bits.vector != vector) || in vioapic_process_eoi() 466 if ((rte.bits.vector != vector) || in vioapic_process_eoi() 481 void vioapic_broadcast_eoi(const struct acrn_vm *vm, uint32_t vector) in vioapic_broadcast_eoi() argument [all …]
|
| A D | vpic.c | 673 void vpic_intr_accepted(struct acrn_vpic *vpic, uint32_t vector) in vpic_intr_accepted() argument 680 pin = (vector & 0x7U); in vpic_intr_accepted() 682 if ((vector & ~0x7U) == vpic->i8259[1].irq_base) { in vpic_intr_accepted()
|
| A D | io_req.c | 367 void set_hsm_notification_vector(uint32_t vector) in set_hsm_notification_vector() argument 369 acrn_hsm_notification_vector = vector; in set_hsm_notification_vector()
|
| /hypervisor/debug/ |
| A D | dump.c | 213 if (ctx->vector < 0x20UL) { in dump_intr_excp_frame() 214 name = excp_names[ctx->vector]; in dump_intr_excp_frame() 215 pr_acrnlog("= Unhandled exception: %d (%s)\n", ctx->vector, name); in dump_intr_excp_frame() 221 ctx->vector, ctx->rip); in dump_intr_excp_frame()
|
| A D | shell.c | 1155 uint32_t irq, vector; in get_cpu_interrupt_info() local 1176 vector = irq_to_vector(irq); in get_cpu_interrupt_info() 1179 && (vector != VECTOR_INVALID)) { in get_cpu_interrupt_info() 1180 len = snprintf(str, size, "\r\n%d\t0x%X", irq, vector); in get_cpu_interrupt_info() 1250 *vector = irq_to_vector(entry->allocated_pirq); in get_entry_info() 1254 *vector = 0U; in get_entry_info() 1270 uint32_t irq, vector; in get_ptdev_info() local 1290 entry->vm->vm_id, type, irq, vector, dest); in get_ptdev_info() 1329 uint32_t delmode, vector, dest; in get_vioapic_info() local 1363 vector = rte.bits.vector; in get_vioapic_info() [all …]
|
| /hypervisor/include/arch/x86/asm/guest/ |
| A D | vlapic.h | 91 void (*accept_intr)(struct acrn_vlapic *vlapic, uint32_t vector, bool level); 126 bool vlapic_clear_pending_intr(struct acrn_vcpu *vcpu, uint32_t vector); 141 void vlapic_set_intr(struct acrn_vcpu *vcpu, uint32_t vector, bool level);
|
| A D | vcpu.h | 536 void vcpu_set_eoi_exit_bitmap(struct acrn_vcpu *vcpu, uint32_t vector); 545 void vcpu_clear_eoi_exit_bitmap(struct acrn_vcpu *vcpu, uint32_t vector);
|
| /hypervisor/include/dm/ |
| A D | vioapic.h | 115 void vioapic_broadcast_eoi(const struct acrn_vm *vm, uint32_t vector);
|
| A D | vpic.h | 174 void vpic_intr_accepted(struct acrn_vpic *vpic, uint32_t vector);
|
| A D | io_req.h | 220 void set_hsm_notification_vector(uint32_t vector);
|
| /hypervisor/include/common/ |
| A D | ptdev.h | 106 uint32_t vector:8; member
|