summary refs log tree commit diff stats
path: root/hw/core
diff options
context:
space:
mode:
authorArun Menon <armenon@redhat.com>2025-09-18 20:53:43 +0530
committerPeter Xu <peterx@redhat.com>2025-10-03 09:48:02 -0400
commit40de712a89d8fe26af398dd23c24e94834ca442b (patch)
treeef429353e739a82719d553009917747cd76dfcbb /hw/core
parent6f9fc6f5012344292f7014e079e5225b8988383d (diff)
downloadfocaccia-qemu-40de712a89d8fe26af398dd23c24e94834ca442b.tar.gz
focaccia-qemu-40de712a89d8fe26af398dd23c24e94834ca442b.zip
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>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions