diff options
author | Marcel Apfelbaum | 2013-09-16 10:21:16 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2013-10-14 16:11:44 +0200 |
commit | a53ae8e934cd54686875b5bcfc2f434244ee55d6 (patch) | |
tree | 0430a9b323ff0a4262a27d67a912828abf526f7d /include/hw/pci | |
parent | docs/memory: Explictly state that MemoryRegion priority is signed (diff) | |
download | qemu-a53ae8e934cd54686875b5bcfc2f434244ee55d6.tar.gz qemu-a53ae8e934cd54686875b5bcfc2f434244ee55d6.tar.xz qemu-a53ae8e934cd54686875b5bcfc2f434244ee55d6.zip |
hw/pci: partially handle pci master abort
A MemoryRegion with negative priority was created and
it spans over all the pci address space.
It "intercepts" the accesses to unassigned pci
address space and will follow the pci spec:
1. returns -1 on read
2. does nothing on write
Note: setting the RECEIVED MASTER ABORT bit in the STATUS register
of the device that initiated the transaction will be
implemented in another series
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci')
-rw-r--r-- | include/hw/pci/pci_bus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci_bus.h b/include/hw/pci/pci_bus.h index 9df17885ec..2ad5edbde9 100644 --- a/include/hw/pci/pci_bus.h +++ b/include/hw/pci/pci_bus.h @@ -23,6 +23,7 @@ struct PCIBus { PCIDevice *parent_dev; MemoryRegion *address_space_mem; MemoryRegion *address_space_io; + MemoryRegion master_abort_mem; QLIST_HEAD(, PCIBus) child; /* this will be replaced by qdev later */ QLIST_ENTRY(PCIBus) sibling;/* this will be replaced by qdev later */ |