Skip to content

RFC vfio based pci pass-through for qemu/KVM on s390

[email protected] kvm linux-s390 qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: s390: Enable PCI instructionsarch/s390/kvm/kvm-s390.c+1 -10 replies
2/6iommu: add iommu for s390 platformarch/s390/include/asm/pci.h arch/s390/pci/pci_dma.c drivers/iommu/Kconfig +2 more+213 -20 replies
3/6vfio: make vfio build on s390drivers/vfio/Kconfig drivers/vfio/pci/vfio_pci_rdwr.c+9 -10 replies
4/6s390: Add PCI bus supportdefault-configs/s390x-softmmu.mak hw/s390x/Makefile.objs hw/s390x/css.c +8 more+650 -10 replies
5/6s390: implement pci instructiontarget-s390x/Makefile.objs target-s390x/kvm.c target-s390x/pci_ic.c +1 more+1099 -12 replies
6/6vfio: make vfio run on s390 platformhw/misc/vfio.c+24 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC patch 0/6] vfio based pci pass-through for qemu/KVM on s390

This set of patches implements a vfio based solution for pci pass-through on the s390 platform. The kernel stuff is pretty much straight forward, but qemu needs more work.

Most interesting patch is:
vfio: make vfio run on s390 platform

I hope Alex & Alex can give me some guidance how to do the changes in an appropriate way. After creating a separate iommmu address space for each attached PCI device I can successfully run the vfio type1 iommu. So If we could extend type1 not registering all guest memory (see patch) I think we do not need a special vfio iommu for s390 for the moment.

The patches implement the base pass-through support. s390 specific virtualization functions are currently not included. This would be a second step after the base support is done.

kernel patches apply to linux-kvm-next

KVM: s390: Enable PCI instructions
iommu: add iommu for s390 platform
vfio: make vfio build on s390

qemu patches apply to qemu-master

s390: Add PCI bus support
s390: implement pci instruction
vfio: make vfio run on s390 platform

Thx for feedback and review comments

Frank