From 361da03f92240742ad4657a294ff05b137401f60 Mon Sep 17 00:00:00 2001 From: Bjorn Helgaas Date: Thu, 18 Apr 2013 12:42:58 -0600 Subject: [PATCH] --- yaml --- r: 362915 b: refs/heads/master c: 508d1aa602ef0679a9cfc181ce918fbc4a2b3a45 h: refs/heads/master i: 362913: 490cfb9b104c8d1f08b0bafa0117dfaf8c5a0b28 362911: 7576ee61d2438827ba88bbfec04d1c3bda2d4030 v: v3 --- [refs] | 2 +- trunk/drivers/vfio/pci/vfio_pci.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 905e0a9781e8..d9d949b42399 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2366d06eb15d3cf21d3b243ff586bcb80896c9f2 +refs/heads/master: 508d1aa602ef0679a9cfc181ce918fbc4a2b3a45 diff --git a/trunk/drivers/vfio/pci/vfio_pci.c b/trunk/drivers/vfio/pci/vfio_pci.c index 8189cb6a86af..10626e825f41 100644 --- a/trunk/drivers/vfio/pci/vfio_pci.c +++ b/trunk/drivers/vfio/pci/vfio_pci.c @@ -78,8 +78,8 @@ static int vfio_pci_enable(struct vfio_pci_device *vdev) pci_read_config_word(pdev, msix_pos + PCI_MSIX_FLAGS, &flags); pci_read_config_dword(pdev, msix_pos + PCI_MSIX_TABLE, &table); - vdev->msix_bar = table & PCI_MSIX_FLAGS_BIRMASK; - vdev->msix_offset = table & ~PCI_MSIX_FLAGS_BIRMASK; + vdev->msix_bar = table & PCI_MSIX_TABLE_BIR; + vdev->msix_offset = table & PCI_MSIX_TABLE_OFFSET; vdev->msix_size = ((flags & PCI_MSIX_FLAGS_QSIZE) + 1) * 16; } else vdev->msix_bar = 0xFF;