|
@@ -12,6 +12,7 @@
|
|
#include "system/blockdev.h"
|
|
#include "system/blockdev.h"
|
|
#include "system/block-backend.h"
|
|
#include "system/block-backend.h"
|
|
#include "hw/block/block.h"
|
|
#include "hw/block/block.h"
|
|
|
|
+#include "migration/cpr.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-types-block.h"
|
|
#include "qapi/qapi-types-block.h"
|
|
|
|
|
|
@@ -66,6 +67,10 @@ bool blk_check_size_and_read_all(BlockBackend *blk, DeviceState *dev,
|
|
int ret;
|
|
int ret;
|
|
g_autofree char *dev_id = NULL;
|
|
g_autofree char *dev_id = NULL;
|
|
|
|
|
|
|
|
+ if (cpr_is_incoming()) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
blk_len = blk_getlength(blk);
|
|
blk_len = blk_getlength(blk);
|
|
if (blk_len < 0) {
|
|
if (blk_len < 0) {
|
|
error_setg_errno(errp, -blk_len,
|
|
error_setg_errno(errp, -blk_len,
|