summary refs log tree commit diff stats
path: root/rust/qemu-api-macros/src/bits.rs
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2025-07-02 14:58:53 -0700
committerCédric Le Goater <clg@redhat.com>2025-07-03 13:42:28 +0200
commit4296ee07455e48c169eb110fbca6ef724c119381 (patch)
treef208d2f799602291e780ecefa6a66b2e5939b541 /rust/qemu-api-macros/src/bits.rs
parent2a3f0a59bd6479f75fa5335f82b85b4f9cd7ed4e (diff)
downloadfocaccia-qemu-4296ee07455e48c169eb110fbca6ef724c119381.tar.gz
focaccia-qemu-4296ee07455e48c169eb110fbca6ef724c119381.zip
vfio/iommufd: reconstruct device
Reconstruct userland device state after CPR.  During vfio_realize, skip all
ioctls that configure the device, as it was already configured in old QEMU.

Skip bind, and use the devid from CPR state.

Skip allocation of, and attachment to, ioas_id.  Recover ioas_id from CPR
state, and use it to find a matching container, if any, before creating a
new one.

This reconstruction is not complete.  hwpt_id is handled in a subsequent
patch.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/1751493538-202042-17-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'rust/qemu-api-macros/src/bits.rs')
0 files changed, 0 insertions, 0 deletions