summaryrefslogtreecommitdiffstats
path: root/tests/libqos/pci.c
diff options
context:
space:
mode:
authorKevin Wolf2013-03-13 17:00:40 +0100
committerKevin Wolf2013-05-08 15:28:49 +0200
commit9f0332b8cf27020d70be92f5e664466f0bcb84ec (patch)
tree6a803544baec3ca1f86ea09b68db1356851bac33 /tests/libqos/pci.c
parentide: Reset BMIDEA bit when the bus master is stopped (diff)
downloadqemu-9f0332b8cf27020d70be92f5e664466f0bcb84ec.tar.gz
qemu-9f0332b8cf27020d70be92f5e664466f0bcb84ec.tar.xz
qemu-9f0332b8cf27020d70be92f5e664466f0bcb84ec.zip
libqos/pci: Enable bus mastering
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/libqos/pci.c')
-rw-r--r--tests/libqos/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqos/pci.c b/tests/libqos/pci.c
index 95e287be65..7e0907b514 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);
}