aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-02-05 12:20:18 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-02-05 12:20:18 +0000
commite39b33978944ef9c17db85b1a91b2637945353f9 (patch)
treed3ae6671850e6abae3c16d3e6bfa2c58b8c233db
parentc8ff96bd9f266646e10eac1787a3f516ed24731b (diff)
downloadxen-e39b33978944ef9c17db85b1a91b2637945353f9.tar.gz
xen-e39b33978944ef9c17db85b1a91b2637945353f9.tar.bz2
xen-e39b33978944ef9c17db85b1a91b2637945353f9.zip
x86: Use per-domain irq-to-vector array when mapping GSIs
Using the per-domain array enables single MSI vectors to be mapped. Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
-rw-r--r--xen/arch/x86/physdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c
index 63ef08893b..794632c053 100644
--- a/xen/arch/x86/physdev.c
+++ b/xen/arch/x86/physdev.c
@@ -62,7 +62,7 @@ static int physdev_map_pirq(struct physdev_map_pirq *map)
ret = -EINVAL;
goto free_domain;
}
- vector = IO_APIC_VECTOR(map->index);
+ vector = domain_irq_to_vector(current->domain, map->index);
if ( !vector )
{
dprintk(XENLOG_G_ERR, "dom%d: map irq with no vector %d\n",