You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/pci
Arun Menon 986c3292c6 migration: Fix regression of passing error_fatal into vmstate_load_state()
error_fatal is passed to vmstate_load_state() and vmstate_save_state()
functions. This was introduced in commit c632ffbd74. This would exit(1)
on error, and therefore does not allow to propagate the error back to
the caller.

To maintain consistency with prior error handling i.e. either propagating
the error to the caller or reporting it, we must set the error within a
local Error object instead of using error_fatal.

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Arun Menon <armenon@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/20251028-solve_error_fatal_regression-v2-1-dab24c808a28@redhat.com
[peterx: always uninit var ret, per Akihiko]
[peterx: touchups on line ordering, spacings etc.]
Signed-off-by: Peter Xu <peterx@redhat.com>
2 weeks ago
..
Kconfig kconfig: Add PCIe devices to s390x machines 2 years ago
meson.build meson: remove CONFIG_ALL 2 years ago
msi.c include: Rename sysemu/ -> system/ 11 months ago
msix.c pci: export msix_is_pending 5 months ago
pci-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 9 months ago
pci-internal.h hw/pci/aer: Make PCIE AER error injection facility available for other emulation to use. 3 years ago
pci-qmp-cmds.c pci: Move QMP commands to new hw/pci/pci-qmp-cmds.c 3 years ago
pci-stub.c hw/pci: remove return after g_assert_not_reached() 1 year ago
pci.c migration: Fix regression of passing error_fatal into vmstate_load_state() 2 weeks ago
pci_bridge.c qom: Make InterfaceInfo[] uses const 7 months ago
pci_host.c hw/pci-host: Remove unused pci_host_data_be_ops 6 months ago
pcie.c pcie: Add a way to get the outstanding page request allocation (pri) from the config space. 1 month ago
pcie_aer.c hw/pci: Constify VMState 2 years ago
pcie_doe.c hw/pci: PCIe Data Object Exchange emulation 3 years ago
pcie_host.c include/hw/pci: Split pci_device.h off pci.h 3 years ago
pcie_port.c hw/pci/pcie_port: Fix pcie_slot_is_hotpluggbale_bus typo 6 months ago
pcie_sriov.c pcie_sriov: make pcie_sriov_pf_exit() safe on non-SR-IOV devices 1 month ago
shpc.c hw/pci: add some convenient trace-events for pcie and shpc hotplug 2 years ago
slotid_cap.c include/hw/pci: Split pci_device.h off pci.h 3 years ago
trace-events hw/pci/pci.c: Turn DPRINTF into trace events 6 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago