]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/ram: Move xbzrle zero page handling into save_zero_page
authorFabiano Rosas <farosas@suse.de>
Wed, 11 Oct 2023 18:46:02 +0000 (15:46 -0300)
committerJuan Quintela <quintela@redhat.com>
Tue, 17 Oct 2023 07:25:14 +0000 (09:25 +0200)
commitccc09db87c7e5e6d52cdde320540f3dc0ee8b147
treecae7f85f29120f38f11ffecb65d84091338cfd7f
parent1e43f165d0810cdd015ade9c37c93b2c2e720d5c
migration/ram: Move xbzrle zero page handling into save_zero_page

It makes a bit more sense to have the zero page handling of xbzrle
right where we save the zero page.

Also invert the exit condition to remove one level of indentation
which makes the next patch easier to grasp.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231011184604.32364-6-farosas@suse.de>
migration/ram.c