Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pci: assign devfn to pci_dev before calling pci_device_iommu_address_…
…space() In function do_pci_register_device() in file hw/pci/pci.c, move the assignment of pci_dev->devfn to the position before the call to pci_device_iommu_address_space(pci_dev) which will use the value of pci_dev->devfn. Fixes: 9eda7d3 pci: Introduce helper to retrieve a PCI device's DMA address space Cc: [email protected] Signed-off-by: Le Tan <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
- Loading branch information