diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-06-14 12:16:37 -0600 |
---|---|---|
committer | Michael S. Tsirkin <mst@robin.(none)> | 2012-06-18 10:21:11 +0300 |
commit | d35e428c8400f9ddc07e5a15ff19622c869b9ba0 (patch) | |
tree | cbdd83939ec2ff8c59aea963db779627b8c34a0b /hw/pci.h | |
parent | 2cf62ad74261a9bd90e5b720e726f0404640b16a (diff) |
msix: Split PBA into it's own MemoryRegion
These don't have to be contiguous. Size them to only what
they need and use separate MemoryRegions for the vector
table and PBA.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -220,12 +220,14 @@ struct PCIDevice { /* MSI-X entries */ int msix_entries_nr; - /* Space to store MSIX table */ - uint8_t *msix_table_page; + /* Space to store MSIX table & pending bit array */ + uint8_t *msix_table; + uint8_t *msix_pba; /* MemoryRegion container for msix exclusive BAR setup */ MemoryRegion msix_exclusive_bar; - /* MMIO index used to map MSIX table and pending bit entries. */ - MemoryRegion msix_mmio; + /* Memory Regions for MSIX table and pending bit entries. */ + MemoryRegion msix_table_mmio; + MemoryRegion msix_pba_mmio; /* Reference-count for entries actually in use by driver. */ unsigned *msix_entry_used; /* MSIX function mask set or MSIX disabled */ |