All of lore.kernel.org
 help / color / mirror / Atom feed
* Exporting PCI device
@ 2007-07-02 15:16 Lukas Hejtmanek
  2007-07-03  9:03 ` Tian, Kevin
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Hejtmanek @ 2007-07-02 15:16 UTC (permalink / raw)
  To: xen-devel

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?

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Exporting PCI device
  2007-07-02 15:16 Exporting PCI device Lukas Hejtmanek
@ 2007-07-03  9:03 ` Tian, Kevin
  0 siblings, 0 replies; 2+ messages in thread
From: Tian, Kevin @ 2007-07-03  9:03 UTC (permalink / raw)
  To: Lukas Hejtmanek, xen-devel

>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?
>
>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
	

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-03  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 15:16 Exporting PCI device Lukas Hejtmanek
2007-07-03  9:03 ` Tian, Kevin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.