/* * Thread Interrupt Management Area (TIMA) * * This is a global MMIO region divided in 4 pages of varying access * permissions, providing access to per-cpu interrupt management * functions. It always identifies the CPU doing the access based * on the PowerBus initiator ID, thus we always access via the * same offset regardless of where the code is executing
*/ externvoid __iomem *xive_tima; externunsignedlong xive_tima_os;
/* * Offset in the TM area of our current execution level (provided by * the backend)
*/ extern u32 xive_tima_offset;
/* * Per-irq data (irq_get_handler_data for normal IRQs), IPIs * have it stored in the xive_cpu structure. We also cache * for normal interrupts the current target CPU. * * This structure is setup by the backend for each interrupt.
*/ struct xive_irq_data {
u64 flags;
u64 eoi_page; void __iomem *eoi_mmio;
u64 trig_page; void __iomem *trig_mmio;
u32 esb_shift; int src_chip;
u32 hw_irq;
/* Setup/used by frontend */ int target; /* * saved_p means that there is a queue entry for this interrupt * in some CPU's queue (not including guest vcpu queues), even * if P is not set in the source ESB. * stale_p means that there is no queue entry for this interrupt * in some CPU's queue, even if P is set in the source ESB.
*/ bool saved_p; bool stale_p;
}; #define XIVE_IRQ_FLAG_STORE_EOI 0x01 #define XIVE_IRQ_FLAG_LSI 0x02 /* #define XIVE_IRQ_FLAG_SHIFT_BUG 0x04 */ /* P9 DD1.0 workaround */ /* #define XIVE_IRQ_FLAG_MASK_FW 0x08 */ /* P9 DD1.0 workaround */ /* #define XIVE_IRQ_FLAG_EOI_FW 0x10 */ /* P9 DD1.0 workaround */ #define XIVE_IRQ_FLAG_H_INT_ESB 0x20
/* Special flag set by KVM for excalation interrupts */ #define XIVE_IRQ_FLAG_NO_EOI 0x80
#define XIVE_INVALID_CHIP_ID -1
/* A queue tracking structure in a CPU */ struct xive_q {
__be32 *qpage;
u32 msk;
u32 idx;
u32 toggle;
u64 eoi_phys;
u32 esc_irq;
atomic_t count;
atomic_t pending_count;
u64 guest_qaddr;
u32 guest_qshift;
};
/* Global enable flags for the XIVE support */ externbool __xive_enabled;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.