qemu-cr16/docs/devel/migration
Arun Menon 40de712a89 migration: Add error-parameterized function variants in VMSD struct
- We need to have good error reporting in the callbacks in
  VMStateDescription struct. Specifically pre_save, pre_load
  and post_load callbacks.
- It is not possible to change these functions everywhere in one
  patch, therefore, we introduce a duplicate set of callbacks
  with Error object passed to them.
- So, in this commit, we implement 'errp' variants of these callbacks,
  introducing an explicit Error object parameter.
- This is a functional step towards transitioning the entire codebase
  to the new error-parameterized functions.
- Deliberately called in mutual exclusion from their counterparts,
  to prevent conflicts during the transition.
- New impls should preferentally use 'errp' variants of
  these methods, and existing impls incrementally converted.
  The variants without 'errp' are intended to be removed
  once all usage is converted.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Arun Menon <armenon@redhat.com>
Tested-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/20250918-propagate_tpm_error-v14-26-36f11a6fb9d3@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
2025-10-03 09:48:02 -04:00
..
best-practices.rst docs/migration: Split "Debugging" and "Firmware" 2024-01-16 11:16:10 +08:00
compatibility.rst include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
CPR.rst vfio: doc changes for cpr 2025-07-03 13:42:28 +02:00
dirty-limit.rst docs/migration: Split "dirty limit" 2024-01-16 11:16:10 +08:00
features.rst docs/migration: add qatzip compression feature 2024-09-09 10:55:39 -04:00
index.rst docs/migration: Further move virtio to be feature of migration 2024-01-16 11:16:10 +08:00
main.rst migration: Add error-parameterized function variants in VMSD struct 2025-10-03 09:48:02 -04:00
mapped-ram.rst docs: use consistent markup for footnotes 2024-10-11 13:48:42 +02:00
postcopy.rst migration/docs: Move docs for postcopy blocktime feature 2025-07-11 10:37:35 -03:00
qatzip-compression.rst docs/migration: add qatzip compression feature 2024-09-09 10:55:39 -04:00
qpl-compression.rst docs/migration: add qpl compression feature 2024-06-14 14:01:28 -03:00
uadk-compression.rst docs: Fix some typos (found by typos) and grammar issues 2024-08-16 14:12:59 +01:00
vfio.rst vfio/migration: Max in-flight VFIO device state buffers size limit 2025-07-15 17:11:12 +02:00
virtio.rst docs/migration: Convert virtio.txt into rST 2024-01-16 11:16:10 +08:00