Release 4.14 arch/x86/include/asm/irq_remapping.h
/*
* Copyright (C) 2012 Advanced Micro Devices, Inc.
* Author: Joerg Roedel <joerg.roedel@amd.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* This header file contains the interface of the interrupt remapping code to
* the x86 interrupt management code.
*/
#ifndef __X86_IRQ_REMAPPING_H
#define __X86_IRQ_REMAPPING_H
#include <asm/irqdomain.h>
#include <asm/hw_irq.h>
#include <asm/io_apic.h>
struct msi_msg;
struct irq_alloc_info;
enum irq_remap_cap {
IRQ_POSTING_CAP = 0,
};
struct vcpu_data {
u64 pi_desc_addr; /* Physical address of PI Descriptor */
u32 vector; /* Guest vector of the interrupt */
};
#ifdef CONFIG_IRQ_REMAP
extern bool irq_remapping_cap(enum irq_remap_cap cap);
extern void set_irq_remapping_broken(void);
extern int irq_remapping_prepare(void);
extern int irq_remapping_enable(void);
extern void irq_remapping_disable(void);
extern int irq_remapping_reenable(int);
extern int irq_remap_enable_fault_handling(void);
extern void panic_if_irq_remap(const char *msg);
extern struct irq_domain *
irq_remapping_get_ir_irq_domain(struct irq_alloc_info *info);
extern struct irq_domain *
irq_remapping_get_irq_domain(struct irq_alloc_info *info);
/* Create PCI MSI/MSIx irqdomain, use @parent as the parent irqdomain. */
extern struct irq_domain *
arch_create_remap_msi_irq_domain(struct irq_domain *par, const char *n, int id);
/* Get parent irqdomain for interrupt remapping irqdomain */
static inline struct irq_domain *arch_get_ir_parent_domain(void)
{
return x86_vector_domain;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jiang Liu | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
#else /* CONFIG_IRQ_REMAP */
static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Feng Wu | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
static inline void set_irq_remapping_broken(void) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Neil Horman | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.00% |
static inline int irq_remapping_prepare(void) { return -ENODEV; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 12 | 92.31% | 1 | 50.00% |
Suresh B. Siddha | 1 | 7.69% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
static inline int irq_remapping_enable(void) { return -ENODEV; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 12 | 92.31% | 1 | 50.00% |
Suresh B. Siddha | 1 | 7.69% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
static inline void irq_remapping_disable(void) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 7 | 87.50% | 1 | 50.00% |
Suresh B. Siddha | 1 | 12.50% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline int irq_remapping_reenable(int eim) { return -ENODEV; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 13 | 92.86% | 1 | 50.00% |
Suresh B. Siddha | 1 | 7.14% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
static inline int irq_remap_enable_fault_handling(void) { return -ENODEV; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 12 | 92.31% | 1 | 50.00% |
Suresh B. Siddha | 1 | 7.69% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
static inline void panic_if_irq_remap(const char *msg)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
static inline struct irq_domain *
irq_remapping_get_ir_irq_domain(struct irq_alloc_info *info)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jiang Liu | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline struct irq_domain *
irq_remapping_get_irq_domain(struct irq_alloc_info *info)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jiang Liu | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_IRQ_REMAP */
#endif /* __X86_IRQ_REMAPPING_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Joerg Roedel | 128 | 42.11% | 7 | 38.89% |
Jiang Liu | 85 | 27.96% | 3 | 16.67% |
Feng Wu | 31 | 10.20% | 2 | 11.11% |
Thomas Gleixner | 16 | 5.26% | 1 | 5.56% |
Suresh B. Siddha | 16 | 5.26% | 3 | 16.67% |
Neil Horman | 15 | 4.93% | 1 | 5.56% |
Paolo Bonzini | 13 | 4.28% | 1 | 5.56% |
Total | 304 | 100.00% | 18 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.