summaryrefslogtreecommitdiffstats
path: root/iohandler.c
diff options
context:
space:
mode:
authorLe Tan2014-07-02 02:06:35 +0200
committerMichael S. Tsirkin2014-07-06 08:13:54 +0200
commitefc8188e9398e54567b238b756eec2cc746cd2a4 (patch)
tree2c623c4483f6631d77a52c1a2d95fc277cd45f0c /iohandler.c
parentHandle G_IO_HUP in tcp_chr_read for tcp chardev (diff)
downloadqemu-efc8188e9398e54567b238b756eec2cc746cd2a4.tar.gz
qemu-efc8188e9398e54567b238b756eec2cc746cd2a4.tar.xz
qemu-efc8188e9398e54567b238b756eec2cc746cd2a4.zip
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: 9eda7d373e9c691c070eddcbe3467b991f67f6bd pci: Introduce helper to retrieve a PCI device's DMA address space Cc: qemu-stable@nongnu.org Signed-off-by: Le Tan <tamlokveer@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'iohandler.c')
0 files changed, 0 insertions, 0 deletions