Avi Kivity 1c380f9460 pci: honor PCI_COMMAND_MASTER
Currently we ignore PCI_COMMAND_MASTER completely: DMA succeeds even when
the bit is clear.

Honor PCI_COMMAND_MASTER by inserting a memory region into the device's
bus master address space, and tying its enable status to PCI_COMMAND_MASTER.

Tested using

  setpci -s 03 COMMAND=3

while a ping was running on a NIC in slot 3.  The kernel (Linux) detected
the stall and recovered after the command

  setpci -s 03 COMMAND=7

was issued.

Signed-off-by: Avi Kivity <avi@redhat.com>
2012-10-22 14:50:08 +02:00
2012-10-22 14:50:08 +02:00
2012-10-01 08:04:22 -05:00
2012-10-05 15:10:21 +02:00
2012-10-14 14:55:09 +04:00
2012-10-05 08:02:30 -05:00
2012-10-05 16:07:49 -05:00
2012-09-28 19:40:56 +02:00
2012-09-28 19:40:56 +02:00
2012-10-05 15:10:21 +02:00
2012-09-28 19:40:56 +02:00
2012-09-28 19:40:56 +02:00
2012-10-22 14:50:08 +02:00
2012-10-22 14:50:08 +02:00
2012-10-05 08:02:30 -05:00
2012-10-22 14:50:08 +02:00
2012-09-22 17:59:12 +00:00
2012-09-28 12:16:27 +02:00
2012-09-28 12:16:27 +02:00
2012-10-05 16:07:49 -05:00
2012-10-05 16:07:49 -05:00
2012-10-05 16:07:49 -05:00
2012-10-22 14:50:08 +02:00
2012-10-22 14:50:08 +02:00
2012-09-25 19:05:56 -05:00
2012-10-05 15:10:21 +02:00
2012-09-28 19:40:56 +02:00
2012-09-26 12:42:19 -03:00
2012-10-05 15:10:21 +02:00
2012-10-06 18:47:04 +02:00
2012-09-28 17:51:47 +02:00
2012-09-28 17:51:47 +02:00
2012-10-03 13:48:45 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%