summaryrefslogtreecommitdiffstats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-20 15:35:55 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-20 15:35:55 +0000
commit5e520a7d500ec2569d22d80f9ef4272a34cb3c80 (patch)
tree0d9b2ad946225fadf44d44a2a9175c53a45229e6 /hw/pci.h
parentca20cf32ab3d945155141ef737f5d08ebb373e1d (diff)
downloadhqemu-5e520a7d500ec2569d22d80f9ef4272a34cb3c80.zip
hqemu-5e520a7d500ec2569d22d80f9ef4272a34cb3c80.tar.gz
Compile msix only once
Get page size in device init. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index e7bf33a..caba5c8 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -212,6 +212,12 @@ struct PCIDevice {
uint32_t msix_bar_size;
/* Version id needed for VMState */
int32_t version_id;
+ /* How much space does an MSIX table need. */
+ /* The spec requires giving the table structure
+ * a 4K aligned region all by itself. Align it to
+ * target pages so that drivers can do passthrough
+ * on the rest of the region. */
+ target_phys_addr_t msix_page_size;
};
PCIDevice *pci_register_device(PCIBus *bus, const char *name,
OpenPOWER on IntegriCloud