qemu-kvm: device assignment cleanups and upstream diff reductions
Status from this message: Thanks, applied 1-6. The rest looks good as well, just need the few comments attended to.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | qemu-kvm: Reduce configure and Makefile.target diff to upstreamMakefile.target configure | +1 | 0 replies | |
| 2/13 | qemu-kvm: Drop some no longer needed #ifdefshw/ kvm-all.c qemu-kvm-x86.c +2 more | +7 | 0 replies | |
| 3/13 | qemu-kvm: Drop -enable-nesting command line switchqemu-kvm.h qemu-options.hx target-i386/ +1 more | +0 | 3 replies | |
| 4/13 | qemu-kvm: Remove eventfd compat headercompat/ | +0 | 13 replies | |
| 5/13 | qemu-kvm: Remove qemu_ram_unmapcpu-common.h exec.c hw/ | +1 | 0 replies | |
| 6/13 | qemu-kvm: Drop or replace useless device-assignment.h inclusionshw/ hw/ vl.c | +1 | 0 replies | |
| 7/13 | pci-assign: Fix kvm_deassign_irq handling in assign_irqhw/ | +3 | 0 replies | |
| 8/13 | pci-assign: Update legacy interrupts only if usedhw/ | +6 | 0 replies | |
| 9/13 | pci-assign: Drop libpci header dependencyconfigure hw/ hw/ | +6 | 1 reply | |
| 10/13 | pci-assign: Refactor calc_assigned_dev_idhw/ hw/ | +12 | 0 replies | |
| 11/13 | pci-assign: Track MSI/MSI-X capability position, clean up related codehw/ | +20 | 0 replies | |
| 12/13 | pci-assign: Generic config space access managementhw/ hw/ | +113 | 12 replies | |
| 13/13 | qemu-kvm: Resolve PCI upstream diffshw/ hw/ | +21 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/13] qemu-kvm: device assignment cleanups and upstream diff reductions
This series basically consists of two halves. The first one applies a few smaller cleanups to qemu-kvm to improve similarity with upstream. This includes the recently discussed removal of -enable-nesting.
The second half starts with two device assignment fixes and then applies some refactorings, specifically dropping the libpci dependency and enabling the revert of some qemu-kvm private PCI core changes. The latter is achieved by simplifying the access control management to the passed-through device's config space. That also saves 100 LOC.
Note that this series was tested with upstream commit af2be20777 ("Fix fallouts from Linux header inclusion") applied and probably depends on it also mechanically.
Please review/merge.
Jan Kiszka (13):
qemu-kvm: Reduce configure and Makefile.target diff to upstream
qemu-kvm: Drop some no longer needed #ifdefs
qemu-kvm: Drop -enable-nesting command line switch
qemu-kvm: Remove eventfd compat header
qemu-kvm: Remove qemu_ram_unmap
qemu-kvm: Drop or replace useless device-assignment.h inclusions
pci-assign: Fix kvm_deassign_irq handling in assign_irq
pci-assign: Update legacy interrupts only if used
pci-assign: Drop libpci header dependency
pci-assign: Refactor calc_assigned_dev_id
pci-assign: Track MSI/MSI-X capability position, clean up related
code
pci-assign: Generic config space access management
qemu-kvm: Resolve PCI upstream diffs
Makefile.target | 2 - compat/sys/eventfd.h | 13 -- configure | 29 +--- cpu-common.h | 1 - exec.c | 13 -- hw/device-assignment.c | 450 +++++++++++++++++------------------------------- hw/device-assignment.h | 9 +- hw/pc.c | 1 - hw/pci-hotplug.c | 1 - hw/pci.c | 29 ++-- hw/pci.h | 8 +- hw/pci_regs.h | 7 - kvm-all.c | 4 - qemu-kvm-x86.c | 20 -- qemu-kvm.h | 30 ---- qemu-options.hx | 2 - target-i386/cpuid.c | 3 - target-i386/kvm.c | 2 - vl.c | 6 +- 19 files changed, 182 insertions(+), 448 deletions(-) delete mode 100644 compat/sys/eventfd.h