aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-10-03 17:17:27 +0200
committerAvi Kivity <avi@redhat.com>2012-10-22 14:50:08 +0200
commit817dcc5368988b023c5e1d3f1444fd370c77c6a9 (patch)
treec64ddfb4f7300c50476f59c85fc446f8a245c622 /hw/pci.h
parent83f3c251422b0724044f976a7ff26b2e8a47c374 (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index d50d26c8a..f9207ca06 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -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 */