drivers/vfio/pci: Fix wrong MSI interrupt count
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 30 May 2014 17:35:54 +0000 (11:35 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 30 May 2014 17:35:54 +0000 (11:35 -0600)
commitfd49c81f080a997aad4b0e73541cd42772b6a772
tree280bab4ea61a5a99ec2fcf0199ba7adc41eeacd8
parentb13460b92093b29347e99d6c3242e350052b62cd
drivers/vfio/pci: Fix wrong MSI interrupt count

According PCI local bus specification, the register of Message
Control for MSI (offset: 2, length: 2) has bit#0 to enable or
disable MSI logic and it shouldn't be part contributing to the
calculation of MSI interrupt count. The patch fixes the issue.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c