On Fri, Jun 10, 2016 at 06:05:20PM +0200, Kevin Wolf wrote:
> +static int coroutine_fn
> +bdrv_co_rw_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos,
> +                   bool is_read)
> +{
> +    BlockDriver *drv = bs->drv;
> +
> +    if (!drv) {
> +        return -ENOMEDIUM;
> +    } else if (drv->bdrv_load_vmstate) {
> +        return is_read ? drv->bdrv_load_vmstate(bs, qiov, pos)
> +                       : drv->bdrv_save_vmstate(bs, qiov, pos);
> +    } else if (bs->file) {
> +        return bdrv_co_rw_vmstate(bs->file->bs, qiov, pos, is_read);
> +    }
> +
> +    return -ENOTSUP;
> +}
> +
> +static void bdrv_co_rw_vmstate_entry(void *opaque)

This should also be coroutine_fn.

Attachment: signature.asc
Description: PGP signature

Reply via email to