]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
vfio-pci: Loosen sanity checks to allow future features
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 8 Jan 2013 21:10:03 +0000 (14:10 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 16 Jan 2013 05:05:45 +0000 (23:05 -0600)
commit86bab459489a192486ec0f49e0ef5114ff6554d2
treefff25b1306bd4cc77d356ed464532d4b0e8d4bcd
parent006c747440b1b22aa5bbef89442ef037741adabc
vfio-pci: Loosen sanity checks to allow future features

VFIO_PCI_NUM_REGIONS and VFIO_PCI_NUM_IRQS should never have been
used in this manner as it locks a specific kernel implementation.
Future features may introduce new regions or interrupt entries
(VGA may add legacy ranges, AER might add an IRQ for error
signalling).  Fix this before it gets us into trouble.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: qemu-stable@nongnu.org
(cherry picked from commit 8fc94e5a8046e349e07976f9bcaffbcd5833f3a2)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/vfio_pci.c