RFC VFIO: capability chains
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vfio: Wrap VFIO_DEVICE_GET_REGION_INFOhw/ hw/ hw/ +1 more | +69 | 0 replies | |
| 2/5 | vfio: Generalize region supporthw/ hw/ hw/ +3 more | +272 | 0 replies | |
| 3/5 | vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functionshw/ hw/ hw/ | +71 | 0 replies | |
| 4/5 | linux-headers/vfio: Update for proposed capabilities listlinux-headers/ | +52 | 0 replies | |
| 5/5 | vfio: Enable sparse mmap capabilityhw/ trace-events | +64 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC post-2.5 PATCH 0/5] VFIO: capability chains
This is the matching QEMU changes for the proposed kernel-side capability chains. Unfortunately there's also a lot of churn to get to consistent interfaces involved in this series, which allow us to generically handle multiple mmaps overlapping a region and making the actual step of consuming the new kernel data trivial. The last patch shows the proof of concept for reallocating the info buffer when necessary and finding and using capability data. Apologies for the patches being a little rough, but I hope the concept shows through. As noted above, this is of course post-2.5 material and of course kernel header updates would only be included when accepted upstream. Thanks,
Alex
---
Alex Williamson (5):
vfio: Wrap VFIO_DEVICE_GET_REGION_INFO
vfio: Generalize region support
vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functions linux-headers/vfio: Update for proposed capabilities list
vfio: Enable sparse mmap capability
hw/vfio/common.c | 245 +++++++++++++++++++++++++++---- hw/vfio/pci-quirks.c | 62 ++++---- hw/vfio/pci.c | 329 +++++++++++++++++++---------------------- hw/vfio/pci.h | 10 + hw/vfio/platform.c | 71 ++------- include/hw/vfio/vfio-common.h | 26 ++- linux-headers/linux/vfio.h | 53 ++++++- trace-events | 12 + 8 files changed, 502 insertions(+), 306 deletions(-)