Also rename the variable and move its declaration to a header.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
int (*ioapic_renumber_irq)(int ioapic, int irq);
atomic_t irq_mis_count;
-int msi_irq_enable = 0;
-boolean_param("msi_irq_enable", msi_irq_enable);
+int msi_enable = 0;
+boolean_param("msi", msi_enable);
int domain_irq_to_vector(struct domain *d, int irq)
{
- if ( !msi_irq_enable )
+ if ( !msi_enable )
return irq_to_vector(irq);
else
return d->arch.pirq_vector[irq];
int domain_vector_to_irq(struct domain *d, int vector)
{
- if ( !msi_irq_enable )
+ if ( !msi_enable )
return vector_to_irq(vector);
else
return d->arch.vector_pirq[vector];
#include <public/physdev.h>
#include <xen/iommu.h>
-extern int msi_irq_enable;
-
/* bitmap indicate which fixed map is free */
DEFINE_SPINLOCK(msix_fixmap_lock);
DECLARE_BITMAP(msix_fixmap_pages, MAX_MSIX_PAGES);
return ret;
}
-extern int msi_irq_enable;
static int physdev_map_pirq(struct physdev_map_pirq *map)
{
struct domain *d;
int vector, pirq, ret = 0;
unsigned long flags;
- /* if msi_irq_enable is not enabled,map always success */
- if ( !msi_irq_enable )
+ /* if msi_enable is not enabled, map always succeeds */
+ if ( !msi_enable )
return 0;
if ( !IS_PRIV(current->domain) )
unsigned long flags;
int ret;
- if ( !msi_irq_enable )
+ if ( !msi_enable )
return 0;
if ( !IS_PRIV(current->domain) )
ret = 0;
- if ( msi_irq_enable )
+ if ( msi_enable )
{
spin_lock_irqsave(&dom0->arch.irq_lock, flags);
if ( irq != AUTO_ASSIGN )
/* 1 if "noapic" boot option passed */
extern int skip_ioapic_setup;
+extern int msi_enable;
+
/*
* If we use the IO-APIC for IRQ routing, disable automatic
* assignment of PCI IRQ's.