]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio-pci: preserve MSI
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 2 Jul 2025 21:58:38 +0000 (14:58 -0700)
committerCédric Le Goater <clg@redhat.com>
Thu, 3 Jul 2025 11:42:28 +0000 (13:42 +0200)
commit30edcb4d4e7a265c2912ca6978b150c7c75b654f
treecaacd9704779bf5500090ac091ddbf76666990bd
parent3f2a36d0ef6339ce78e107959da81f76283582f7
vfio-pci: preserve MSI

Save the MSI message area as part of vfio-pci vmstate, and preserve the
interrupt and notifier eventfd's.  migrate_incoming loads the MSI data,
then the vfio-pci post_load handler finds the eventfds in CPR state,
rebuilds vector data structures, and attaches the interrupts to the new
KVM instance.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/1751493538-202042-2-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/cpr.c
hw/vfio/pci.c
hw/vfio/pci.h
include/hw/vfio/vfio-cpr.h