hw/vfio/pci: Introduce VFIORegion
commita664477db8dac84cc046e9d79701eefda1d58703
authorEric Auger <eric.auger@linaro.org>
Mon, 22 Dec 2014 16:54:37 +0000 (22 09:54 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Dec 2014 16:54:37 +0000 (22 09:54 -0700)
tree9cc9291eee0d1ce15782f6edede46065fd5cbbe5
parentb47d8efa9f430c332bf96ce6eede169eb48422ad
hw/vfio/pci: Introduce VFIORegion

This structure is going to be shared by VFIOPCIDevice and
VFIOPlatformDevice. VFIOBAR includes it.

vfio_eoi becomes an ops of VFIODevice specialized by parent device.
This makes possible to transform vfio_bar_write/read into generic
vfio_region_write/read that will be used by VFIOPlatformDevice too.

vfio_mmap_bar becomes vfio_map_region

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