]> Git Repo - qemu.git/commit
libqos: add iteration support to qpci_find_capability()
authorStefan Hajnoczi <[email protected]>
Wed, 23 Oct 2019 10:04:19 +0000 (11:04 +0100)
committerMichael S. Tsirkin <[email protected]>
Fri, 25 Oct 2019 11:46:22 +0000 (07:46 -0400)
commita32a028aa702d7bcee0cd19a588d04d15a4437e1
tree6c8d39734aa3a268ebc0839cb8726d863698a074
parentbccd82b4073b7242876480d7f4d93bd281feb548
libqos: add iteration support to qpci_find_capability()

VIRTIO 1.0 PCI devices have multiple PCI_CAP_ID_VNDR capabilities so we
need a way to iterate over them.  Extend qpci_find_capability() to take
the last address.

Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
--
v3:
 * Document qpci_find_capability()
Message-Id: <20191023100425[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
tests/libqos/pci.c
tests/libqos/pci.h
This page took 0.024597 seconds and 4 git commands to generate.