]> git.proxmox.com Git - qemu.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)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 8 Jan 2013 21:10:03 +0000 (14:10 -0700)
commit8fc94e5a8046e349e07976f9bcaffbcd5833f3a2
treed852aa24d242f601e3cd6f3610c245d236f554f6
parentb0223e29afdc88cc262a764026296414396cd129
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
hw/vfio_pci.c