diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-20 15:35:55 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-20 15:35:55 +0000 |
commit | 5e520a7d500ec2569d22d80f9ef4272a34cb3c80 (patch) | |
tree | 0d9b2ad946225fadf44d44a2a9175c53a45229e6 /hw/pci.h | |
parent | ca20cf32ab3d945155141ef737f5d08ebb373e1d (diff) | |
download | hqemu-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |