hw/vfio/pci: split vfio_get_device
commitd13dd2d7a957eacbb9e669c43dd9e19db969755b
authorEric Auger <eric.auger@linaro.org>
Mon, 22 Dec 2014 16:54:38 +0000 (22 09:54 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Dec 2014 16:54:38 +0000 (22 09:54 -0700)
tree17d005b760253ef80f51875c40995fff865d0901
parenta664477db8dac84cc046e9d79701eefda1d58703
hw/vfio/pci: split vfio_get_device

vfio_get_device now takes a VFIODevice as argument. The function is split
into 2 parts: vfio_get_device which is generic and vfio_populate_device
which is bus specific.

3 new fields are introduced in VFIODevice to store dev_info.

vfio_put_base_device is created.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c
trace-events