mirror of
https://github.com/qemu/qemu.git
synced 2026-10-06 05:08:09 +00:00
Normally the vfio pseudo device file descriptor lives for the life of the VM. However, when the kvm VM file descriptor changes, a new file descriptor for the pseudo device needs to be generated against the new kvm VM descriptor. Other existing vfio descriptors needs to be reattached to the new pseudo device descriptor. This change performs the above steps. Tested-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Ani Sinha <anisinha@redhat.com> Link: https://lore.kernel.org/r/20260227072445.406907-1-anisinha@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>