Skip to contentSkip to conversation

Exporting PCI device

DISCUSSION Lukas Hejtmanek 2 participants 2 messages Jul 2, 2007 – Jul 3, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

one question, if I export PCI device from Dom0 to DomU, should the device possess the same IRQ number in both domains?

For example, I'm playing with an InfiniBand card in DomU and I can see that lspci -v in Dom0 reports that it has IRQ #16 while in DomU it has IRQ #10 (using also lspci -v). Is this correct and possible behaviour or is it a bug that should be fixed?

Signature · 1 line
Lukáš Hejtmánek
#1 lore raw
Quoted 9 lines

From: Lukas Hejtmanek
Sent: 2007年7月2日 23:16

Hello,

one question, if I export PCI device from Dom0 to DomU, should the device
possess the same IRQ number in both domains?

Quoted 8 lines

For example, I'm playing with an InfiniBand card in DomU and I can see that
lspci -v in Dom0 reports that it has IRQ #16 while in DomU it has IRQ #10
(using also lspci -v). Is this correct and possible behaviour or is it a bug that should be fixed?

--

I think they should be same. domU doesn't have MP table and ACPI, and thus it then depends on information of interrupt line within PCI configuration space. You can see that pciback provides config field virtualization for interrupt line by returning dev->irq from dom0. Inconsistent irq number between dom0 and domU will confuse Xen when translating from vector into irq number.

Thanks,
Kevin