]> git.proxmox.com Git - mirror_qemu.git/commit
pci: move check for existing devfn into new pci_bus_devfn_available() helper
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 16 Jul 2017 20:27:33 +0000 (21:27 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 8 Sep 2017 13:15:17 +0000 (16:15 +0300)
commit9b717a3a1318455afce761301fec114982ccbf1f
tree41f533153a1b830179be19aa8ce8dcf8b5dfe83e
parentc8389550dedc65892fba9c3df29423efd802f544
pci: move check for existing devfn into new pci_bus_devfn_available() helper

Also touch up the logic in do_pci_register_device() accordingly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c