pci-assign: Refactor for upstream merge
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest20 patches 1 replyApplied
- v119 patches 10 repliesSuperseded
Changes in v2 from the cover letter
- rebased over qemu-kvm next
- consistently clear unused IOCTL fields via structure initialization
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | pci-assign: Only clean up registered IO resourceshw/ | +6 | 0 replies | |
| 2/20 | pci-assign: Factor out kvm_device_pci_assign/deassignhw/ qemu-kvm.c qemu-kvm.h +2 more | +53 | 0 replies | |
| 3/20 | pci-assign: Rename assign_irq to assign_intxhw/ | +7 | 0 replies | |
| 4/20 | pci-assign: Refactor interrupt deassignmenthw/ qemu-kvm.c qemu-kvm.h +2 more | +86 | 0 replies | |
| 5/20 | pci-assign: Factor out kvm_device_intx_assignhw/ target-i386/ target-i386/ | +33 | 0 replies | |
| 6/20 | qemu-kvm: Move kvm_device_intx_set_mask serviceqemu-kvm.c qemu-kvm.h target-i386/ +1 more | +10 | 0 replies | |
| 7/20 | qemu-kvm: Clear unused IOCTL fields in kvm_device_intx_set_masktarget-i386/ | +5 | 0 replies | |
| 8/20 | pci-assign: Rework MSI assignmenthw/ target-i386/ target-i386/ | +35 | 0 replies | |
| 9/20 | pci-assign: Factor out kvm_device_msix_supportedhw/ target-i386/ target-i386/ | +9 | 0 replies | |
| 10/20 | pci-assign: Replace kvm_assign_set_msix_nr with kvm_device_msix_init_vectorshw/ qemu-kvm.c qemu-kvm.h +2 more | +15 | 0 replies | |
| 11/20 | pci-assign: Replace kvm_assign_set_msix_entry with kvm_device_msix_set_vectorhw/ qemu-kvm.c qemu-kvm.h +2 more | +16 | 0 replies | |
| 12/20 | pci-assign: Rework MSI-X route setuphw/ kvm-all.c kvm-stub.c +3 more | +71 | 0 replies | |
| 13/20 | pci-assign: Factor out kvm_device_msix_assignhw/ qemu-kvm.c qemu-kvm.h +2 more | +8 | 0 replies | |
| 14/20 | qemu-kvm: Kill qemu-kvm.[ch]hw/ kvm-all.c kvm.h +2 more | +0 | 0 replies | |
| 15/20 | pci-assign: Drop configure switchesconfigure hw/ | +1 | 0 replies | |
| 16/20 | pci-assign: Move and rename source filehw/ hw/ hw/ | +6 | 0 replies | |
| 17/20 | pci-assign: Fix coding style issueshw/ | +105 | 0 replies | |
| 18/20 | pci-assign: Replace exit() with hw_error()hw/ | +2 | 0 replies | |
| 19/20 | pci-assign: Drop unused or write-only variableshw/ | +0 | 0 replies | |
| 20/20 | pci-assign: Gracefully handle missing in-kernel irqchip supporthw/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/20] pci-assign: Refactor for upstream merge
With this series, we are getting very close to obsoleting qemu-kvm. It refactors hw/device-assignment.c and the associated KVM helper functions into a form that should allow merging them into QEMU. Once the series is acceptable for qemu-kvm, I will break out the necessary uq/master patches and push pci-assign to upstream.
The major step of this series is to define a regular set of kvm_device_* services that encapsulate classic (i.e. KVM-based, non-VFIO) device assignment features and export them to i386 targets only. There will never be another arch using them, therefore I pushed them into this corner. Moreover, the device assignment device now makes use of the new KVM IRQ/MSI routing API and no longer pokes into the internals of that layer. Finally, I moved the code into hw/kvm/pci-assign.c, dropped the superfluous configure option and did some basic code cleanups (mostly coding style) to bring things in shape.
Note that patch 1 is a simple bug fix that should likely be applied for qemu-kvm-1.2 independently.
Changes in v2:
- rebased over qemu-kvm next
- consistently clear unused IOCTL fields via structure initialization
Jan Kiszka (20):
pci-assign: Only clean up registered IO resources
pci-assign: Factor out kvm_device_pci_assign/deassign
pci-assign: Rename assign_irq to assign_intx
pci-assign: Refactor interrupt deassignment
pci-assign: Factor out kvm_device_intx_assign
qemu-kvm: Move kvm_device_intx_set_mask service
qemu-kvm: Clear unused IOCTL fields in kvm_device_intx_set_mask
pci-assign: Rework MSI assignment
pci-assign: Factor out kvm_device_msix_supported
pci-assign: Replace kvm_assign_set_msix_nr with
kvm_device_msix_init_vectors
pci-assign: Replace kvm_assign_set_msix_entry with
kvm_device_msix_set_vector
pci-assign: Rework MSI-X route setup
pci-assign: Factor out kvm_device_msix_assign
qemu-kvm: Kill qemu-kvm.[ch]
pci-assign: Drop configure switches
pci-assign: Move and rename source file
pci-assign: Fix coding style issues
pci-assign: Replace exit() with hw_error()
pci-assign: Drop unused or write-only variables
pci-assign: Gracefully handle missing in-kernel irqchip support
configure | 11 -
hw/i386/Makefile.objs | 3 -
hw/kvm/Makefile.objs | 2 +-
hw/{device-assignment.c => kvm/pci-assign.c} | 502 +++++++++++++-------------
kvm-all.c | 54 +++-
kvm-stub.c | 9 -
kvm.h | 12 +-
qemu-kvm.c | 233 ------------
qemu-kvm.h | 112 ------
target-i386/kvm.c | 141 +++++++
target-i386/kvm_i386.h | 22 ++
11 files changed, 460 insertions(+), 641 deletions(-)
rename hw/{device-assignment.c => kvm/pci-assign.c} (84%)
delete mode 100644 qemu-kvm.c
delete mode 100644 qemu-kvm.hSignature · 1 line
1.7.3.4