qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Why devfn will be -1
@ 2014-07-01  2:34 Le Tan
  2014-07-01  7:34 ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Le Tan @ 2014-07-01  2:34 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

Hi Jan,
I use pci_setup_iommu() to setup a PCIIOMMUFunc for the q35 pci bus.
In the iommu_fn, I print out the devfn parameter and find out that it
sometimes will be -1. So what does it mean?
The detail code is here:

In mch_init() function, I write like this:
PCIBus *pci_bus = PCI_BUS(qdev_get_parent_bus(DEVICE(mch)));
pci_setup_iommu(pci_bus, q35_host_dma_iommu, mch->iommu);

And in q35_host_dma_iommu(PCIBus *bus, void *opaque, int devfn), I
print out the devfn parameter, sometimes it will be -1.

Thanks very much!

Regards,
Le

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

end of thread, other threads:[~2014-07-01 13:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-01  2:34 [Qemu-devel] Why devfn will be -1 Le Tan
2014-07-01  7:34 ` Jan Kiszka
2014-07-01 12:52   ` Le Tan
2014-07-01 12:55     ` Le Tan
2014-07-01 12:56       ` Jan Kiszka
2014-07-01 13:02         ` Le Tan
2014-07-01 13:08           ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).