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/migration
Stefan Weil 0bc6fa2446 migration: Fix order of function arguments
This fixes a compiler error when higher warning levels are enabled:

../migration/postcopy-ram.c: In function ‘postcopy_temp_pages_setup’:
../migration/postcopy-ram.c:1483:50: error: ‘g_malloc0_n’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
 1483 |     mis->postcopy_tmp_pages = g_malloc0_n(sizeof(PostcopyTmpPage), channels);
      |                                                  ^~~~~~~~~~~~~~~
../migration/postcopy-ram.c:1483:50: note: earlier argument should specify number of elements, later size of each element

Avoid also a related int/unsigned mismatch by fixing the type of
two local variables.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209125049.764095-1-sw@weilnetz.de>
[PMD: Replace g_malloc0_n() by g_new0()]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Peter Xu <peterx@redhat.com>
Message-Id: <20251209195010.83219-1-philmd@linaro.org>
2 weeks ago
..
block-active.c migration/block-active: Remove global active flag 11 months ago
block-dirty-bitmap.c migration: Rename save_live_complete_precopy to save_complete 5 months ago
channel-block.c migration: add FEATURE_SEEKABLE to QIOChannelBlock 2 months ago
channel-block.h migration: introduce a QIOChannel impl for BlockDriverState VMState 4 years ago
channel.c migration: Properly wait on G_IO_IN when peeking messages 2 months ago
channel.h migration: check magic value for deciding the mapping of channels 3 years ago
colo-failover.c migration/colo: Improve an x-colo-lost-heartbeat error message 3 years ago
colo-stubs.c migration/colo: make colo_incoming_co() return void 2 years ago
colo.c migration: Update qemu_file_get_return_path() docs and remove dead checks 3 months ago
cpr-exec.c migration: Plug memory leaks after migrate_set_error() 1 month ago
cpr-transfer.c migration: Support fd-based socket address in cpr_transfer_input 6 months ago
cpr.c migration/cpr: Fix coverity report in cpr_exec_persist_state() 2 months ago
cpu-throttle.c include: Rename sysemu/ -> system/ 1 year ago
dirtyrate.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
dirtyrate.h include: Rename sysemu/ -> system/ 1 year ago
exec.c migration: simplify exec migration functions 2 years ago
exec.h migration: convert exec backend to accept MigrateAddress. 2 years ago
fd.c migration: Allow pipes to keep working for fd migrations 1 year ago
fd.h migration: Revert mapped-ram multifd support to fd: URI 2 years ago
file.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
file.h migration/multifd: Pass in MultiFDPages_t to file_write_ramblock_iov 1 year ago
global_state.c include: Rename sysemu/ -> system/ 1 year ago
meson.build migration: cpr-exec save and load 3 months ago
migration-hmp-cmds.c migration/cpr: Document obscure usage of g_autofree when parse str 2 months ago
migration-stats.c migration: migration_rate_limit_reset() don't need the QEMUFile 2 years ago
migration-stats.h migration: Remove transferred atomic counter 2 years ago
migration.c migration: set correct list pointer when removing notifier 1 month ago
migration.h migration: Introduce POSTCOPY_DEVICE state 2 months ago
multifd-device-state.c migration: Rename save_live_complete_precopy_thread to save_complete_precopy_thread 5 months ago
multifd-nocomp.c migration: enable multifd and postcopy together 7 months ago
multifd-qatzip.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
multifd-qpl.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
multifd-uadk.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
multifd-zero-page.c migration: write zero pages when postcopy enabled 7 months ago
multifd-zlib.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
multifd-zstd.c include/system: Move exec/ramblock.h to system/ramblock.h 8 months ago
multifd.c migration: Fix double-free on error path 3 weeks ago
multifd.h migration/multifd: move macros to multifd header 8 months ago
options.c migration: mapped-ram: handle zero pages 2 months ago
options.h migration/savevm: Add a compatibility check for capabilities 2 months ago
page_cache.c migration: Fix cache_init()'s "Failed to allocate" error messages 5 years ago
page_cache.h migration: Clean up signed vs. unsigned XBZRLE cache-size 5 years ago
postcopy-ram.c migration: Fix order of function arguments 2 weeks ago
postcopy-ram.h migration: Introduce postcopy incoming setup and cleanup functions 2 months ago
qemu-file.c io: Add qio_channel_wait_cond() helper 2 months ago
qemu-file.h migration: qemu_file_set_blocking(): add errp parameter 3 months ago
ram.c migration: mapped-ram: handle zero pages 2 months ago
ram.h migration: push Error **errp into loadvm_process_enable_colo() 3 months ago
rdma.c migration/rdma: Check ntohll() availability with meson 1 month ago
rdma.h migration: Unfold control_save_page() 8 months ago
savevm.c migration: Introduce POSTCOPY_DEVICE state 2 months ago
savevm.h migration: Introduce POSTCOPY_DEVICE state 2 months ago
socket.c qio: Provide accessor around QIONetListener->sioc 1 month ago
socket.h migration: Remove unused socket_send_channel_create_sync 1 year ago
threadinfo.c migration/multifd: Protect accesses to migration_threads 2 years ago
threadinfo.h migration/multifd: Protect accesses to migration_threads 2 years ago
tls.c migration: activate TLS thread safety workaround 5 months ago
tls.h migration/multifd: Terminate the TLS connection 10 months ago
trace-events migration: Introduce POSTCOPY_DEVICE state 2 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vfio-stub.c migration/vfio: compile only once 4 months ago
vfio.c migration/vfio: compile only once 4 months ago
vmstate-types.c migration: cpr-exec mode 3 months ago
vmstate.c migration: vmsd errp handlers: return bool 2 months ago
xbzrle.c migration/xbzrle: Use i386 host/cpuinfo.h 3 years ago
xbzrle.h migration/xbzrle: Use i386 host/cpuinfo.h 3 years ago
yank_functions.c migration/yank: Use channel features 2 years ago
yank_functions.h migration: Move the yank unregister of channel_close out 4 years ago