Re: [Qemu-devel] Why devfn will be -1

2014-07-01 Thread Jan Kiszka
On 2014-07-01 15:02, Le Tan wrote: > 2014-07-01 20:56 GMT+08:00 Jan Kiszka : >> On 2014-07-01 14:55, Le Tan wrote: >>> 2014-07-01 20:52 GMT+08:00 Le Tan : Hi Jan, 2014-07-01 15:34 GMT+08:00 Jan Kiszka : > Hi Le, > > On 2014-07-01 04:34, Le Tan wrote: >> Hi Jan, >>

Re: [Qemu-devel] Why devfn will be -1

2014-07-01 Thread Le Tan
2014-07-01 20:56 GMT+08:00 Jan Kiszka : > On 2014-07-01 14:55, Le Tan wrote: >> 2014-07-01 20:52 GMT+08:00 Le Tan : >>> Hi Jan, >>> >>> 2014-07-01 15:34 GMT+08:00 Jan Kiszka : Hi Le, On 2014-07-01 04:34, Le Tan wrote: > Hi Jan, > I use pci_setup_iommu() to setup a PCIIOMMUFun

Re: [Qemu-devel] Why devfn will be -1

2014-07-01 Thread Jan Kiszka
On 2014-07-01 14:55, Le Tan wrote: > 2014-07-01 20:52 GMT+08:00 Le Tan : >> Hi Jan, >> >> 2014-07-01 15:34 GMT+08:00 Jan Kiszka : >>> Hi Le, >>> >>> On 2014-07-01 04:34, Le Tan wrote: Hi Jan, I use pci_setup_iommu() to setup a PCIIOMMUFunc for the q35 pci bus. In the iommu_fn, I prin

Re: [Qemu-devel] Why devfn will be -1

2014-07-01 Thread Le Tan
2014-07-01 20:52 GMT+08:00 Le Tan : > Hi Jan, > > 2014-07-01 15:34 GMT+08:00 Jan Kiszka : >> Hi Le, >> >> On 2014-07-01 04:34, Le Tan wrote: >>> 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

Re: [Qemu-devel] Why devfn will be -1

2014-07-01 Thread Le Tan
Hi Jan, 2014-07-01 15:34 GMT+08:00 Jan Kiszka : > Hi Le, > > On 2014-07-01 04:34, Le Tan wrote: >> 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?

Re: [Qemu-devel] Why devfn will be -1

2014-07-01 Thread Jan Kiszka
Hi Le, On 2014-07-01 04:34, Le Tan wrote: > 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

[Qemu-devel] Why devfn will be -1

2014-06-30 Thread Le Tan
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_pare