mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
b984b2968b
commit
558902cc3d
3 changed files with 43 additions and 9 deletions
|
@ -94,6 +94,9 @@ typedef struct BdrvTrackedRequest {
|
|||
struct BdrvTrackedRequest *waiting_for;
|
||||
} BdrvTrackedRequest;
|
||||
|
||||
int bdrv_check_qiov_request(int64_t offset, int64_t bytes,
|
||||
QEMUIOVector *qiov, size_t qiov_offset,
|
||||
Error **errp);
|
||||
int bdrv_check_request(int64_t offset, int64_t bytes, Error **errp);
|
||||
|
||||
struct BlockDriver {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue