]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: check request on vmstate save/load path
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 3 Sep 2021 10:27:58 +0000 (13:27 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 29 Sep 2021 18:46:31 +0000 (13:46 -0500)
commit558902cc3dc61231930001b82dcd95d20d58b417
tree04109e44d5f02367fbf8d4d9a612102f1883c740
parentb984b2968b415759307558493b1a2bb6070a2251
qcow2: check request on vmstate save/load path

We modify the request by adding an offset to vmstate. Let's check the
modified request. It will help us to safely move .bdrv_co_preadv_part
and .bdrv_co_pwritev_part to int64_t type of offset and bytes.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210903102807.27127-3-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/io.c
block/qcow2.c
include/block/block_int.h