PCI capability and device assignment improvements
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest9 patches 1 replyApplied
- v29 patches 4 repliesSuperseded
- v18 patches 17 repliesSuperseded
Changes in v3 from the cover letter
- Rework to avoid introducing conflicts with qemu.git hw/pci
- Drop capability lookup table
- Add back minimal device assignment PM, EXP, X, VPD, VNDR capabilities
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | pci: pci_default_cap_write_config ignores wmaskhw/ | +8 | 0 replies | |
| 2/9 | pci: Remove pci_enable_capability_support()hw/ hw/ hw/ | +35 | 0 replies | |
| 3/9 | device-assignment: Use PCI capabilities supporthw/ | +63 | 0 replies | |
| 4/9 | pci: Replace used bitmap with config byte maphw/ hw/ hw/ | +13 | 0 replies | |
| 5/9 | pci: Remove cap.length, cap.start, cap.supportedhw/ hw/ hw/ | +0 | 0 replies | |
| 6/9 | device-assignment: Move PCI capabilities to match physical hardwarehw/ | +20 | 0 replies | |
| 7/9 | pci: Remove capability specific handlershw/ hw/ hw/ | +13 | 0 replies | |
| 8/9 | device-assignment: Make use of config_maphw/ | +19 | 0 replies | |
| 9/9 | device-assignment: pass through and stub more PCI capshw/ | +199 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/9] PCI capability and device assignment improvements
v3:
- Rework to avoid introducing conflicts with qemu.git hw/pci
- Drop capability lookup table
- Add back minimal device assignment PM, EXP, X, VPD, VNDR capabilities
This version should do a much better job at not introducing new differences between qemu-kvm.git and qemu.git hw/pci. The diff between the pci files after this series is significantly reduced. I added back the previous RFC patch that adds new capabilities for assigned devices. I'm sure we'll want to add passthrough for various fields, but that can come later (along with figuring out whether we can consolidate emulation should other drivers want it). Thanks,
Alex
v2:
- Fixed the function name in 1/8 per Michael's suggestion.
- Removed capability specific config read/write registration
- Added more checks to add_capability
- Added capability lookup table to PCIDevice
I've dropped the RFC patch to add more capabilities to device assignment while I do some more work on it. Please feel free to comment on the v1 version though. Patches still against qemu-kvm, but I hope some of this makes it easier to bring qemu & qemu-kvm closer here.
v1:
This series attempts to clean up capability support between common code and device assignment. In doing so, we can move existing MSI & MSI-X capabilities to offsets matching real hardware, and further enable more capabilities to be exposed.
The last patch is only for RFC, I'd like some input on what we should pass directly and where we should only provide read-only/emulated access. Patches 1-7 are submitted for commit.
---
Alex Williamson (9):
device-assignment: pass through and stub more PCI caps
device-assignment: Make use of config_map
pci: Remove capability specific handlers
device-assignment: Move PCI capabilities to match physical hardware
pci: Remove cap.length, cap.start, cap.supported
pci: Replace used bitmap with config byte map
device-assignment: Use PCI capabilities support
pci: Remove pci_enable_capability_support()
pci: pci_default_cap_write_config ignores wmask
hw/device-assignment.c | 332 +++++++++++++++++++++++++++++++++++++----------- hw/pci.c | 109 ++-------------- hw/pci.h | 32 ----- 3 files changed, 276 insertions(+), 197 deletions(-)