diff options
author | Avi Kivity <avi@redhat.com> | 2012-10-03 17:17:27 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-10-22 14:50:08 +0200 |
commit | 817dcc5368988b023c5e1d3f1444fd370c77c6a9 (patch) | |
tree | c64ddfb4f7300c50476f59c85fc446f8a245c622 /hw/pci.h | |
parent | 83f3c251422b0724044f976a7ff26b2e8a47c374 (diff) |
pci: give each device its own address space
Accesses from different devices can resolve differently
(depending on bridge settings, iommus, and PCI_COMMAND_MASTER), so
set up an address space for each device.
Currently iommus are expressed outside the memory API, so this doesn't
work if an iommu is present.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -211,6 +211,7 @@ struct PCIDevice { int32_t devfn; char name[64]; PCIIORegion io_regions[PCI_NUM_REGIONS]; + AddressSpace bus_master_as; DMAContext *dma; /* do not access the following fields */ |