qemu-cr16/hw/vfio
Arun Menon c632ffbd74 migration: push Error **errp into vmstate_load_state()
This is an incremental step in converting vmstate loading
code to report error via Error objects instead of directly
printing it to console/monitor.
It is ensured that vmstate_load_state() must report an error
in errp, in case of failure.

The errors are temporarily reported using error_report_err().
This is removed in the subsequent patches in this series,
when we are actually able to propagate the error to the calling
function using errp. Whereas, if we want the function to exit on
error, then error_fatal is passed.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
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-2-36f11a6fb9d3@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
2025-10-03 09:48:01 -04:00
..
ap.c vfio/iommufd: add vfio_device_free_name 2025-07-03 13:42:28 +02:00
ccw.c vfio/iommufd: add vfio_device_free_name 2025-07-03 13:42:28 +02:00
container-legacy.c hw/vfio/container.c: rename file to container-legacy.c 2025-09-25 17:55:19 +02:00
container.c hw/vfio/container-base.c: rename file to container.c 2025-09-25 17:55:19 +02:00
cpr-iommufd.c vfio/cpr-iommufd.c: use QOM casts where appropriate 2025-09-25 17:55:19 +02:00
cpr-legacy.c include/hw/vfio/vfio-container.h: rename file to vfio-container-legacy.h 2025-09-25 17:55:19 +02:00
cpr.c vfio/pci.h: rename VFIOPCIDevice pdev field to parent_obj 2025-09-08 16:46:32 +02:00
device.c hw/vfio/types.h: rename TYPE_VFIO_PCI_BASE to TYPE_VFIO_PCI_DEVICE 2025-09-25 17:55:20 +02:00
display.c ramfb: Add property to control if load the romfile 2025-07-17 12:44:57 +02:00
helpers.c vfio/migration: Add x-migration-load-config-after-iter VFIO property 2025-07-15 17:11:12 +02:00
igd.c vfio/igd.c: use QOM casts where appropriate 2025-09-08 16:46:31 +02:00
iommufd-stubs.c migration: vfio cpr state hook 2025-07-03 13:42:28 +02:00
iommufd.c vfio/iommufd.c: use QOM casts where appropriate 2025-09-25 17:55:19 +02:00
Kconfig vfio: Remove 'vfio-platform' 2025-09-08 16:46:31 +02:00
listener.c include/hw/vfio/vfio-container-base.h: rename VFIOContainerBase to VFIOContainer 2025-09-25 17:55:19 +02:00
meson.build hw/vfio/container-base.c: rename file to container.c 2025-09-25 17:55:19 +02:00
migration-multifd.c vfio queue: 2025-07-16 07:07:44 -04:00
migration-multifd.h vfio/migration: Add x-migration-load-config-after-iter VFIO property 2025-07-15 17:11:12 +02:00
migration.c vfio/migration: Add x-migration-load-config-after-iter VFIO property 2025-07-15 17:11:12 +02:00
pci-quirks.c vfio: Do not unparent in instance_finalize() 2025-09-24 09:23:20 +02:00
pci-quirks.h vfio/pci: introduce config_offset field in VFIOConfigMirrorQuirk 2025-02-11 14:15:19 +01:00
pci.c migration: push Error **errp into vmstate_load_state() 2025-10-03 09:48:01 -04:00
pci.h hw/vfio/types.h: rename TYPE_VFIO_PCI_BASE to TYPE_VFIO_PCI_DEVICE 2025-09-25 17:55:20 +02:00
region.c vfio: Do not unparent in instance_finalize() 2025-09-24 09:23:20 +02:00
spapr.c vfio/spapr.c: rename VFIOContainer bcontainer field to parent_obj 2025-09-25 17:55:19 +02:00
trace-events vfio: Remove 'vfio-platform' 2025-09-08 16:46:31 +02:00
trace.h vfio: add license tag to some files 2025-06-26 08:55:37 +02:00
types.h hw/vfio/types.h: rename TYPE_VFIO_PCI_BASE to TYPE_VFIO_PCI_DEVICE 2025-09-25 17:55:20 +02:00
vfio-display.h vfio: Introduce new files for VFIORegion definitions and declarations 2025-04-25 09:01:37 +02:00
vfio-helpers.h vfio/migration: Add x-migration-load-config-after-iter VFIO property 2025-07-15 17:11:12 +02:00
vfio-iommufd.h vfio/vfio-iommufd.h: rename VFIOContainer bcontainer field to parent_obj 2025-09-25 17:55:19 +02:00
vfio-listener.h include/hw/vfio/vfio-container-base.h: rename VFIOContainerBase to VFIOContainer 2025-09-25 17:55:19 +02:00
vfio-migration-internal.h hw/vfio/vfio-migration: Remove unnecessary 'qemu/typedefs.h' include 2025-07-29 13:56:39 +02:00
vfio-region.h vfio: Move vfio-region.h under hw/vfio/ 2025-09-08 16:46:31 +02:00