All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 00/15] s390x/pci: Implement migration for emulated devices
@ 2026-08-07 17:07 Konstantin Shkolnyy
  2026-08-07 17:07 ` [PATCH v6 01/15] s390x/pci: implement IOMMU replay Konstantin Shkolnyy
                   ` (14 more replies)
  0 siblings, 15 replies; 27+ messages in thread
From: Konstantin Shkolnyy @ 2026-08-07 17:07 UTC (permalink / raw)
  To: mjrosato
  Cc: alifm, farman, richard.henderson, iii, david, cohuck, pasic,
	borntraeger, qemu-s390x, qemu-devel, Konstantin Shkolnyy


Up until now QEMU marked any zPCI device as "unmigratable."

This patch series adds support for migrating emulated devices, which are
simpler to migrate. It leaves VFIO devices still unmigratable.

To enable migration, the device state needs to be saved/restored to/from
the migration stream.

There are 2 kinds of emulated devices - those that use the zPCI IOMMU page
table emulation in QEMU (e.g., Intel IGB NIC), and those that don't (virtio).
This is important to note for testing purposes.

This change was tested on IGB, virtio-net and virtio-blk devices by running
I/O on them while performing "virsh managedsave, virsh start" and also live
migration to another host and back.

Changes in v6:
 - patch 14: Instead of blocking migration just because s390-pcihost exists, block it only if actual PCI devices exist.

Konstantin Shkolnyy (14):
  s390x/pci: Create function to contain translation status check
  s390x/pci: Move iommu_mr from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move dm_mr from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move iotlb from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Remove a ptr to S390PCIBusDevice from S390PCIIOMMU
  s390x/pci: Move/rename enabled from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move dma_limit from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move g_iota from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move pba from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move pal from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Move max_dma_limit from S390PCIIOMMU to S390PCIBusDevice
  s390x/pci: Add a comment explaining S390PCIIOMMU purpose
  s390x/pci: Implement migration for emulated devices
  s390x/pci: Create function to contain fmb_timer start

Matthew Rosato (1):
  s390x/pci: implement IOMMU replay

 hw/s390x/s390-pci-bus.c          | 347 ++++++++++++++++++++++++++-----
 hw/s390x/s390-pci-inst.c         | 120 ++++++-----
 hw/s390x/s390-pci-vfio.c         |   4 +-
 hw/s390x/s390-virtio-ccw.c       |   4 +
 include/hw/s390x/s390-pci-bus.h  |  42 ++--
 include/hw/s390x/s390-pci-inst.h |   3 +-
 6 files changed, 393 insertions(+), 127 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2026-08-11 18:41 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07 17:07 [PATCH v6 00/15] s390x/pci: Implement migration for emulated devices Konstantin Shkolnyy
2026-08-07 17:07 ` [PATCH v6 01/15] s390x/pci: implement IOMMU replay Konstantin Shkolnyy
2026-08-07 17:07 ` [PATCH v6 02/15] s390x/pci: Create function to contain translation status check Konstantin Shkolnyy
2026-08-07 17:08 ` [PATCH v6 03/15] s390x/pci: Move iommu_mr from S390PCIIOMMU to S390PCIBusDevice Konstantin Shkolnyy
2026-08-07 17:08 ` [PATCH v6 04/15] s390x/pci: Move dm_mr " Konstantin Shkolnyy
2026-08-07 17:08 ` [PATCH v6 05/15] s390x/pci: Move iotlb " Konstantin Shkolnyy
2026-08-11 17:17   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 06/15] s390x/pci: Remove a ptr to S390PCIBusDevice from S390PCIIOMMU Konstantin Shkolnyy
2026-08-11 17:17   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 07/15] s390x/pci: Move/rename enabled from S390PCIIOMMU to S390PCIBusDevice Konstantin Shkolnyy
2026-08-11 17:18   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 08/15] s390x/pci: Move dma_limit " Konstantin Shkolnyy
2026-08-11 17:23   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 09/15] s390x/pci: Move g_iota " Konstantin Shkolnyy
2026-08-11 17:25   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 10/15] s390x/pci: Move pba " Konstantin Shkolnyy
2026-08-11 17:27   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 11/15] s390x/pci: Move pal " Konstantin Shkolnyy
2026-08-11 17:37   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 12/15] s390x/pci: Move max_dma_limit " Konstantin Shkolnyy
2026-08-11 17:39   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 13/15] s390x/pci: Add a comment explaining S390PCIIOMMU purpose Konstantin Shkolnyy
2026-08-11 17:46   ` Farhan Ali
2026-08-07 17:08 ` [PATCH v6 14/15] s390x/pci: Implement migration for emulated devices Konstantin Shkolnyy
2026-08-11 18:17   ` Farhan Ali
2026-08-11 18:41     ` Matthew Rosato
2026-08-07 17:08 ` [PATCH v6 15/15] s390x/pci: Create function to contain fmb_timer start Konstantin Shkolnyy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.