Re: [PATCH] migration: Simplify get_qlist

2020-01-27 Thread Juan Quintela
Eric Auger wrote: > Instead of inserting read elements at the head and > then reversing the list, it is simpler to add > each element after the previous one. Introduce > QLIST_RAW_INSERT_AFTER helper and use it in > get_qlist(). > > Signed-off-by: Eric Auger > Suggested-by: Juan Quintela Review

[PATCH] migration: Simplify get_qlist

2020-01-25 Thread Eric Auger
Instead of inserting read elements at the head and then reversing the list, it is simpler to add each element after the previous one. Introduce QLIST_RAW_INSERT_AFTER helper and use it in get_qlist(). Signed-off-by: Eric Auger Suggested-by: Juan Quintela --- --- include/qemu/queue.h | 19