Hi, While reading the block migration code I couldn't resist cleaning it up. Among other things I replaced the lists by simple queues from NetBSD (it can probably be useful for other subsystems).
block-migration.c | 486 ++++++++++++++++++++++------------------------------- block-migration.h | 4 +- qemu-queue.h | 109 ++++++++++++- savevm.c | 41 +++--- 4 files changed, 332 insertions(+), 308 deletions(-)