static int qcow2_load_vmstate(BlockDriverState *bs, QEMUIOVector *qiov,

                              int64_t pos)

{

    BDRVQcow2State *s = bs->opaque;

    bool zero_beyond_eof = bs->zero_beyond_eof;

    int ret;



    BLKDBG_EVENT(bs->file, BLKDBG_VMSTATE_LOAD);

    bs->zero_beyond_eof = false;

    ret = bdrv_preadv(bs, qcow2_vm_state_offset(s) + pos, qiov);

    bs->zero_beyond_eof = zero_beyond_eof;



    return ret;

}

static int qcow2_load_vmstate(BlockDriverState *bs, QEMUIOVector *qiov,

                              int64_t pos)

{

    BDRVQcow2State *s = bs->opaque;

    bool zero_beyond_eof = bs->zero_beyond_eof;

    int ret;



    BLKDBG_EVENT(bs->file, BLKDBG_VMSTATE_LOAD);

    bs->zero_beyond_eof = false;

    ret = bdrv_preadv(bs, qcow2_vm_state_offset(s) + pos, qiov);

    bs->zero_beyond_eof = zero_beyond_eof;



    return ret;

}

static int FUNC_0(BlockDriverState *VAR_0, QEMUIOVector *VAR_1,

                              int64_t VAR_2)

{

    BDRVQcow2State *s = VAR_0->opaque;

    bool zero_beyond_eof = VAR_0->zero_beyond_eof;

    int VAR_3;



    BLKDBG_EVENT(VAR_0->file, BLKDBG_VMSTATE_LOAD);

    VAR_0->zero_beyond_eof = false;

    VAR_3 = bdrv_preadv(VAR_0, qcow2_vm_state_offset(s) + VAR_2, VAR_1);

    VAR_0->zero_beyond_eof = zero_beyond_eof;



    return VAR_3;

}

static int FUNC_0(BlockDriverState *VAR_0, QEMUIOVector *VAR_1,
int64_t VAR_2)
{ BDRVQcow2State *s = VAR_0->opaque; bool zero_beyond_eof = VAR_0->zero_beyond_eof; int VAR_3; BLKDBG_EVENT(VAR_0->file, BLKDBG_VMSTATE_LOAD); VAR_0->zero_beyond_eof = false; VAR_3 = bdrv_preadv(VAR_0, qcow2_vm_state_offset(s) + VAR_2, VAR_1); VAR_0->zero_beyond_eof = zero_beyond_eof; return VAR_3; }