Patchwork [04/10] libqos/pci: Enable bus mastering

login
register
mail settings
Submitter Kevin Wolf
Date May 8, 2013, 2:28 p.m.
Message ID <1368023344-29731-5-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/242596/
State New
Headers show

Comments

Kevin Wolf - May 8, 2013, 2:28 p.m.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 tests/libqos/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/tests/libqos/pci.c b/tests/libqos/pci.c
index 95e287b..7e0907b 100644
--- a/tests/libqos/pci.c
+++ b/tests/libqos/pci.c
@@ -71,7 +71,7 @@  void qpci_device_enable(QPCIDevice *dev)
 
     /* FIXME -- does this need to be a bus callout? */
     cmd = qpci_config_readw(dev, PCI_COMMAND);
-    cmd |= PCI_COMMAND_IO | PCI_COMMAND_MEMORY;
+    cmd |= PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER;
     qpci_config_writew(dev, PCI_COMMAND, cmd);
 }