vfio: Create shared routine for scanning info capabilities
commit3ab7a0b40d4be5ade3b61d4afd1518193b199423
authorMatthew Rosato <mjrosato@linux.ibm.com>
Mon, 26 Oct 2020 15:34:32 +0000 (26 11:34 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Sun, 1 Nov 2020 19:30:51 +0000 (1 12:30 -0700)
tree96cafb0aed3dcd830a71291947169b72d31b8b69
parent408b55db8be3e3edae041d46ef8786fabc1476aa
vfio: Create shared routine for scanning info capabilities

Rather than duplicating the same loop in multiple locations,
create a static function to do the work.

Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c