memory: Propagate Error* when possible
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest25 patches 58 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
All 25 patches have a Reviewed-by or Acked-by.
| Patch | Manos Pitsidianakis | Peter Xu | Richard Henderson | Andrew Jeffery | Gavin Shan |
|---|---|---|---|---|---|
| 1/25 | R-b | R-b | R-b | ||
| 2/25 | R-b | R-b | |||
| 3/25 | R-b | ||||
| 4/25 | R-b | R-b | R-b | ||
| 5/25 | R-b | R-b | |||
| 6/25 | R-b | R-b | |||
| 7/25 | R-b | R-b | |||
| 8/25 | R-b | R-b | |||
| 9/25 | R-b | R-b | |||
| 10/25 | R-b | R-b | |||
| 11/25 | R-b | R-b | |||
| 12/25 | R-b | R-b | |||
| 13/25 | R-b | R-b | |||
| 14/25 | R-b | R-b | |||
| 15/25 | R-b | R-b | |||
| 16/25 | R-b | R-b | |||
| 17/25 | R-b | R-b | |||
| 18/25 | R-b | R-b | |||
| 19/25 | R-b | R-b | |||
| 20/25 | R-b | R-b | R-b | ||
| 21/25 | R-b | R-b | |||
| 22/25 | R-b | ||||
| 23/25 | R-b | R-b | |||
| 24/25 | R-b | R-b | |||
| 25/25 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH-for-9.0 00/25] memory: Propagate Error* when possible
Hi,
This series is remotely connected with the "dynamic machine" project. We need QOM objects created either from command line, QMP or loaded by modules to NOT fail exiting the whole QEMU process, but cleanly propagate any error before failing cleanly.
In preparation for that big goal, we start reworking a bit the Memory API to be able to propagate all errors.
This targets the 9.0 release, but posting earlier to discuss with Markus meanwhile.
Regards,
Phil.
Philippe Mathieu-Daudé (25):
memory: Have memory_region_init_ram_flags_nomigrate() return a boolean
memory: Have memory_region_init_ram_nomigrate() handler return a
boolean
memory: Have memory_region_init_rom_nomigrate() handler return a
boolean
memory: Simplify memory_region_init_rom_nomigrate() calls
memory: Simplify memory_region_init_ram_from_fd() calls
memory: Have memory_region_init_ram() handler return a boolean
memory: Have memory_region_init_rom() handler return a boolean
memory: Have memory_region_init_rom_device_nomigrate() return a
boolean
memory: Simplify memory_region_init_rom_device_nomigrate() calls
memory: Have memory_region_init_rom_device() handler return a boolean
memory: Have memory_region_init_resizeable_ram() return a boolean
memory: Have memory_region_init_ram_from_file() handler return a
boolean
memory: Have memory_region_init_ram_from_fd() handler return a boolean
backends: Use g_autofree in HostMemoryBackendClass::alloc() handlers
backends: Simplify host_memory_backend_memory_complete()
backends: Have HostMemoryBackendClass::alloc() handler return a
boolean
backends: Reduce variable scope in host_memory_backend_memory_complete util/oslib: Have qemu_prealloc_mem() handler return a boolean
misc: Simplify qemu_prealloc_mem() calls
hw: Simplify memory_region_init_ram() calls
hw/arm: Simplify memory_region_init_rom() calls
hw/sparc: Simplify memory_region_init_ram_nomigrate() calls hw/misc: Simplify memory_region_init_ram_from_fd() calls hw/nvram: Simplify memory_region_init_rom_device() calls hw/pci-host/raven: Propagate error in raven_realize()
include/exec/memory.h | 40 ++++++++--- include/qemu/osdep.h | 4 +- include/sysemu/hostmem.h | 10 ++- backends/hostmem-epc.c | 14 ++-- backends/hostmem-file.c | 22 +++--- backends/hostmem-memfd.c | 13 ++-- backends/hostmem-ram.c | 12 ++-- backends/hostmem.c | 144 ++++++++++++++++++--------------------- hw/arm/aspeed_ast2400.c | 6 +- hw/arm/aspeed_ast2600.c | 6 +- hw/arm/fsl-imx25.c | 19 ++---- hw/arm/fsl-imx31.c | 19 ++---- hw/arm/fsl-imx6.c | 19 ++---- hw/arm/integratorcp.c | 7 +- hw/arm/nrf51_soc.c | 7 +- hw/misc/ivshmem.c | 8 +-- hw/nvram/nrf51_nvm.c | 7 +- hw/pci-host/raven.c | 6 +- hw/ppc/rs6000_mc.c | 7 +- hw/sparc/sun4m.c | 20 ++---- hw/sparc64/sun4u.c | 7 +- hw/virtio/virtio-mem.c | 6 +- system/memory.c | 68 ++++++++++-------- util/oslib-posix.c | 7 +- util/oslib-win32.c | 4 +- 25 files changed, 234 insertions(+), 248 deletions(-)
Signature · 1 line
2.41.0