Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362915
b: refs/heads/master
c: 508d1aa
h: refs/heads/master
i:
  362913: 490cfb9
  362911: 7576ee6
v: v3
  • Loading branch information
Bjorn Helgaas committed Apr 24, 2013
1 parent 4daeb7c commit 361da03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2366d06eb15d3cf21d3b243ff586bcb80896c9f2
refs/heads/master: 508d1aa602ef0679a9cfc181ce918fbc4a2b3a45
4 changes: 2 additions & 2 deletions trunk/drivers/vfio/pci/vfio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 361da03

Please sign in to comment.