static void virtio_blk_set_config(VirtIODevice *vdev, const uint8_t *config)

{

    VirtIOBlock *s = VIRTIO_BLK(vdev);

    struct virtio_blk_config blkcfg;



    memcpy(&blkcfg, config, sizeof(blkcfg));



    aio_context_acquire(bdrv_get_aio_context(s->bs));

    bdrv_set_enable_write_cache(s->bs, blkcfg.wce != 0);

    aio_context_release(bdrv_get_aio_context(s->bs));

}

static void virtio_blk_set_config(VirtIODevice *vdev, const uint8_t *config)

{

    VirtIOBlock *s = VIRTIO_BLK(vdev);

    struct virtio_blk_config blkcfg;



    memcpy(&blkcfg, config, sizeof(blkcfg));



    aio_context_acquire(bdrv_get_aio_context(s->bs));

    bdrv_set_enable_write_cache(s->bs, blkcfg.wce != 0);

    aio_context_release(bdrv_get_aio_context(s->bs));

}

static void FUNC_0(VirtIODevice *VAR_0, const uint8_t *VAR_1)

{

    VirtIOBlock *s = VIRTIO_BLK(VAR_0);

    struct virtio_blk_config VAR_2;



    memcpy(&VAR_2, VAR_1, sizeof(VAR_2));



    aio_context_acquire(bdrv_get_aio_context(s->bs));

    bdrv_set_enable_write_cache(s->bs, VAR_2.wce != 0);

    aio_context_release(bdrv_get_aio_context(s->bs));

}

static void FUNC_0(VirtIODevice *VAR_0, const uint8_t *VAR_1)
{ VirtIOBlock *s = VIRTIO_BLK(VAR_0); struct virtio_blk_config VAR_2; memcpy(&VAR_2, VAR_1, sizeof(VAR_2)); aio_context_acquire(bdrv_get_aio_context(s->bs)); bdrv_set_enable_write_cache(s->bs, VAR_2.wce != 0); aio_context_release(bdrv_get_aio_context(s->bs)); }