X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=migration%2Fqemu-file.c;h=04315855022d70d26a35bde708e086fdd5413312;hb=c4107e8208d0222f9b328691b519aaee4101db87;hp=0463f4c3215ee35f4e493b76f070b540b981d447;hpb=34ab9e9743aeaf265929d930747f101fa5c76fea;p=mirror_qemu.git diff --git a/migration/qemu-file.c b/migration/qemu-file.c index 0463f4c321..0431585502 100644 --- a/migration/qemu-file.c +++ b/migration/qemu-file.c @@ -23,7 +23,6 @@ */ #include "qemu/osdep.h" #include -#include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/iov.h" #include "migration.h" @@ -253,8 +252,12 @@ size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset, if (f->hooks && f->hooks->save_page) { int ret = f->hooks->save_page(f, f->opaque, block_offset, offset, size, bytes_sent); - f->bytes_xfer += size; - if (ret != RAM_SAVE_CONTROL_DELAYED) { + if (ret != RAM_SAVE_CONTROL_NOT_SUPP) { + f->bytes_xfer += size; + } + + if (ret != RAM_SAVE_CONTROL_DELAYED && + ret != RAM_SAVE_CONTROL_NOT_SUPP) { if (bytes_sent && *bytes_sent > 0) { qemu_update_position(f, *bytes_sent); } else if (ret < 0) {