msix: Switch msix_uninit to return void
It can't fail.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
msix: Move msix_mmio_read
What's this doing so far from msix_mmio_ops?
msix: Note endian TODO item
MSIX, like PCI, is little endian. Specifying native is wrong here,but we need to check the rest of the file to determine if it'sas simple as flipping this macro.
msix: Split PBA into it's own MemoryRegion
These don't have to be contiguous. Size them to only whatthey need and use separate MemoryRegions for the vectortable and PBA.
msix: Allow full specification of MSIX layout
Finally, complete the fully specified interface. msix_add_config()gets folded into msix_init() because we now have quite a few parametersto pass and rolling it in let's us error earlier, avoiding the uglyunwind exit path. msix_mmio_setup() also gets rolled in, just because...
virtio: Convert to msix_init_exclusive_bar() interface
Simple conversion.
msix: Add simple BAR allocation MSIX setup functions
msi_init() takes over a BAR without really specifying or allowingspecification of how it does so. Instead, let's split it intotwo interfaces, one fully specified, and one trivially easy. Thisimplements the latter. msix_init_exclusive_bar() takes over...
ivshmem: Convert to msix_init_exclusive_bar() interface
Trivial conversion, failed to have an uninit before and after.
msix: drop unused msix_bar_size, require valid bar_size
No user in sight for msix_bar_size.bar_size for all users is aligned, let's simplyrequire this instead of trying to fix up invalid input.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
msix: fix PCIDevice naming inconsistency
msix.h calls the PCIDevice * parameter "dev" almost everywhere exceptthe msix_write_config declaration. Fix the inconsistency.
View revisions
Also available in: Atom