msix: Support specifying offsets, BARs, and capability location
Status from this message: Thanks, applied all.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest8 patches 8 repliesApplied
- v26 patches 30 repliesSuperseded
- v11 patch 14 repliesSuperseded
Changes in v3 from the cover letter
- more patches, smaller diff, must be headed in the right direction
- macros for all hardcoded values in msix_init_exclusive_bar
- fold msix_add_config into msix_init allowing less churn to moving around msix_uninit
- note native endian bug
- split msix_mmio_read move to separate patch
- split changing return value of msix_uninit to separate patch
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | msix: Add simple BAR allocation MSIX setup functionshw/ hw/ hw/ | +52 | 0 replies | |
| 2/8 | ivshmem: Convert to msix_init_exclusive_bar() interfacehw/ | +3 | 0 replies | |
| 3/8 | virtio: Convert to msix_init_exclusive_bar() interfacehw/ hw/ | +5 | 0 replies | |
| 4/8 | msix: Move msix_mmio_readhw/ | +10 | 0 replies | |
| 5/8 | msix: Note endian TODO itemhw/ | +1 | 0 replies | |
| 6/8 | msix: Split PBA into it's own MemoryRegionhw/ hw/ | +73 | 0 replies | |
| 7/8 | msix: Allow full specification of MSIX layouthw/ hw/ | +56 | 0 replies | |
| 8/8 | msix: Switch msix_uninit to return voidhw/ hw/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [Qemu-devel] [PATCH v3 0/8] msix: Support specifying offsets, BARs, and capability location
v3:
- more patches, smaller diff, must be headed in the right direction
- macros for all hardcoded values in msix_init_exclusive_bar
- fold msix_add_config into msix_init allowing less churn to moving around msix_uninit
- note native endian bug
- split msix_mmio_read move to separate patch
- split changing return value of msix_uninit to separate patch
Thanks,
Alex
v2:
- split patch
- rename msix_[un]init_bar() to msix_[un]init_exclusive_bar()
- add the cherry on top to cleaning up PCIDevice naming
v1:
msix_init has very little configurability as to how it lays out MSIX for a device. It claims to resize BARs, but doesn't actually do this anymore. This patch allows MSIX to be fully specified, which is necessary both for emulated devices trying to match the physical layout of a hardware device as well as for any kind of device assignment.
New functions msix_init_bar & msix_uninit_bar provide wrappers around the more detailed functions for drivers that just want a simple MSIX setup.
---
Alex Williamson (8):
msix: Switch msix_uninit to return void
msix: Allow full specification of MSIX layout
msix: Split PBA into it's own MemoryRegion
msix: Note endian TODO item
msix: Move msix_mmio_read
virtio: Convert to msix_init_exclusive_bar() interface
ivshmem: Convert to msix_init_exclusive_bar() interface
msix: Add simple BAR allocation MSIX setup functions
hw/ivshmem.c | 10 +- hw/msix.c | 271 +++++++++++++++++++++++++++++++------------------------ hw/msix.h | 13 ++- hw/pci.h | 12 ++ hw/virtio-pci.c | 15 +-- hw/virtio-pci.h | 1 6 files changed, 176 insertions(+), 146 deletions(-)