diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2025-06-10 08:39:17 -0700 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2025-06-11 14:01:58 +0200 |
commit | c29a65ed68535288551d2bf70ae32f3df371a57d (patch) | |
tree | 59548081eb53b45ba7353e06d6c5f40e0a17d92c /hw/avr/arduino.c | |
parent | 54857b08168a0a74711d1f773c16a7122499027b (diff) | |
download | qemu-c29a65ed68535288551d2bf70ae32f3df371a57d.zip qemu-c29a65ed68535288551d2bf70ae32f3df371a57d.tar.gz qemu-c29a65ed68535288551d2bf70ae32f3df371a57d.tar.bz2 |
vfio/container: preserve descriptors
At vfio creation time, save the value of vfio container, group, and device
descriptors in CPR state. On qemu restart, vfio_realize() finds and uses
the saved descriptors.
During reuse, device and iommu state is already configured, so operations
in vfio_realize that would modify the configuration, such as vfio ioctl's,
are skipped. The result is that vfio_realize constructs qemu data
structures that reflect the current state of the device.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/1749569991-25171-5-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/avr/arduino.c')
0 files changed, 0 insertions, 0 deletions