vfio/pci: Fix VGA quirks
commite19b9ad27ca65bbb8743fda22e4815dfa311f4e2
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Jun 2016 19:00:22 +0000 (30 13:00 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 19:30:32 +0000 (5 14:30 -0500)
tree9a8a858832b24b195ab0ceb604cf5b8aa28e06da
parent4f696c85331ce19d3d2af29519e21a45192d3200
vfio/pci: Fix VGA quirks

Commit 2d82f8a3cdb2 ("vfio/pci: Convert all MemoryRegion to dynamic
alloc and consistent functions") converted VFIOPCIDevice.vga to be
dynamically allocted, negating the need for VFIOPCIDevice.has_vga.
Unfortunately not all of the has_vga users were converted, nor was
the field removed from the structure.  Correct these oversights.

Reported-by: Peter Maloney <peter.maloney@brockmann-consult.de>
Tested-by: Peter Maloney <peter.maloney@brockmann-consult.de>
Fixes: 2d82f8a3cdb2 ("vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functions")
Fixes: https://bugs.launchpad.net/qemu/+bug/1591628
Cc: qemu-stable@nongnu.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
(cherry picked from commit 4d3fc4fdc6857e33346ed58ae55870f59391ee71)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/vfio/pci-quirks.c
hw/vfio/pci.h