xemu/migration
Markus Armbruster 97f3ad3551 migration: Use g_new() & friends where that makes obvious sense
g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
for two reasons.  One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.

This commit only touches allocations with size arguments of the form
sizeof(T).  Same Coccinelle semantic patch as in commit b45c03f.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1442231491-23352-1-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2015-09-29 11:36:35 +05:30
..
Makefile.objs Split the QEMU buffered file code out 2014-12-16 17:47:36 +05:30
block.c block: Use bdrv_drain to replace uncessary bdrv_drain_all 2015-07-07 14:27:14 +01:00
exec.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
fd.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
migration.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
qemu-file-buf.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
qemu-file-internal.h Split struct QEMUFile out 2014-12-16 17:47:36 +05:30
qemu-file-stdio.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
qemu-file-unix.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
qemu-file.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
ram.c migration/ram.c: Use RAMBlock rather than MemoryRegion 2015-09-29 11:33:02 +05:30
rdma.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
savevm.c migration: Use g_new() & friends where that makes obvious sense 2015-09-29 11:36:35 +05:30
tcp.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
unix.c Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler 2015-06-12 13:26:21 +01:00
vmstate.c vmstate: Create optional sections 2015-07-07 14:54:52 +02:00
xbzrle.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30