[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: rename MSI option
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216905485 -3600 # Node ID 89d05940cc1cac7c2d69a25a2b205222bc6e6234 # Parent 07a44e0d2c52b012c28f3638961ae14a99fb2244 x86: rename MSI option Also rename the variable and move its declaration to a header. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- xen/arch/x86/io_apic.c | 8 ++++---- xen/arch/x86/msi.c | 2 -- xen/arch/x86/physdev.c | 9 ++++----- xen/include/asm-x86/io_apic.h | 2 ++ 4 files changed, 10 insertions(+), 11 deletions(-) diff -r 07a44e0d2c52 -r 89d05940cc1c xen/arch/x86/io_apic.c --- a/xen/arch/x86/io_apic.c Thu Jul 24 14:17:14 2008 +0100 +++ b/xen/arch/x86/io_apic.c Thu Jul 24 14:18:05 2008 +0100 @@ -45,12 +45,12 @@ int (*ioapic_renumber_irq)(int ioapic, i 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]; @@ -58,7 +58,7 @@ int domain_irq_to_vector(struct domain * 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]; diff -r 07a44e0d2c52 -r 89d05940cc1c xen/arch/x86/msi.c --- a/xen/arch/x86/msi.c Thu Jul 24 14:17:14 2008 +0100 +++ b/xen/arch/x86/msi.c Thu Jul 24 14:18:05 2008 +0100 @@ -27,8 +27,6 @@ #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); diff -r 07a44e0d2c52 -r 89d05940cc1c xen/arch/x86/physdev.c --- a/xen/arch/x86/physdev.c Thu Jul 24 14:17:14 2008 +0100 +++ b/xen/arch/x86/physdev.c Thu Jul 24 14:18:05 2008 +0100 @@ -184,15 +184,14 @@ static int unmap_domain_pirq(struct doma 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) ) @@ -304,7 +303,7 @@ static int physdev_unmap_pirq(struct phy unsigned long flags; int ret; - if ( !msi_irq_enable ) + if ( !msi_enable ) return 0; if ( !IS_PRIV(current->domain) ) @@ -455,7 +454,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H ret = 0; - if ( msi_irq_enable ) + if ( msi_enable ) { spin_lock_irqsave(&dom0->arch.irq_lock, flags); if ( irq != AUTO_ASSIGN ) diff -r 07a44e0d2c52 -r 89d05940cc1c xen/include/asm-x86/io_apic.h --- a/xen/include/asm-x86/io_apic.h Thu Jul 24 14:17:14 2008 +0100 +++ b/xen/include/asm-x86/io_apic.h Thu Jul 24 14:18:05 2008 +0100 @@ -160,6 +160,8 @@ static inline void io_apic_modify(unsign /* 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. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |