hw/vfio/pci: introduce minimalist VFIODevice with fd
commit5546a621a8801351601537b311539486b9b3ee79
authorEric Auger <eric.auger@linaro.org>
Fri, 19 Dec 2014 22:24:31 +0000 (19 15:24 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Dec 2014 22:24:31 +0000 (19 15:24 -0700)
tree2f1741ebff65b262c6334688d5338ddd7e7d9c3b
parent079eb19cbb3079536788dfd58832824804815e48
hw/vfio/pci: introduce minimalist VFIODevice with fd

Introduce a new base VFIODevice strcut that will be used by both PCI
and Platform VFIO device. Move VFIOPCIDevice fd field there. Obviously
other fields from VFIOPCIDevice will be moved there but this patch
file is introduced to ease the review.

Also vfio_mask_single_irqindex, vfio_unmask_single_irqindex,
vfio_disable_irqindex now take a VFIODevice handle as argument.

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