]> git.proxmox.com Git - qemu.git/commit - arch_init.c
ram: refactor ram_save_block() return value
authorJuan Quintela <quintela@redhat.com>
Mon, 10 Dec 2012 12:27:50 +0000 (13:27 +0100)
committerJuan Quintela <quintela@redhat.com>
Thu, 20 Dec 2012 22:09:40 +0000 (23:09 +0100)
commitb823ceaadfaad65f3a034ada394b33ca1bf1a914
tree3d42d39571cc13f063fe639c7413b2c84c73c60b
parent3f7d7b098194ec893efa037491f6231687ff043a
ram: refactor ram_save_block() return value

It could only return 0 if we only found dirty xbzrle pages that hadn't
changed (i.e. they were written with the same content).  We don't care
about that case, it is the same than nothing dirty.

So now the return of the function is how much have it written, nothing
else. Adjust callers.

And we also made ram_save_iterate() return the number of transferred
bytes, not the number of transferred pages.

Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c