static void virgl_resource_attach_backing(VirtIOGPU *g,

                                          struct virtio_gpu_ctrl_command *cmd)

{

    struct virtio_gpu_resource_attach_backing att_rb;

    struct iovec *res_iovs;

    int ret;



    VIRTIO_GPU_FILL_CMD(att_rb);

    trace_virtio_gpu_cmd_res_back_attach(att_rb.resource_id);



    ret = virtio_gpu_create_mapping_iov(&att_rb, cmd, NULL, &res_iovs);

    if (ret != 0) {

        cmd->error = VIRTIO_GPU_RESP_ERR_UNSPEC;

        return;

    }



    virgl_renderer_resource_attach_iov(att_rb.resource_id,

                                       res_iovs, att_rb.nr_entries);

}

static void virgl_resource_attach_backing(VirtIOGPU *g,

                                          struct virtio_gpu_ctrl_command *cmd)

{

    struct virtio_gpu_resource_attach_backing att_rb;

    struct iovec *res_iovs;

    int ret;



    VIRTIO_GPU_FILL_CMD(att_rb);

    trace_virtio_gpu_cmd_res_back_attach(att_rb.resource_id);



    ret = virtio_gpu_create_mapping_iov(&att_rb, cmd, NULL, &res_iovs);

    if (ret != 0) {

        cmd->error = VIRTIO_GPU_RESP_ERR_UNSPEC;

        return;

    }



    virgl_renderer_resource_attach_iov(att_rb.resource_id,

                                       res_iovs, att_rb.nr_entries);

}

    virgl_renderer_resource_attach_iov(att_rb.resource_id,                                        res_iovs, att_rb.nr_entries);
static void FUNC_0(VirtIOGPU *VAR_0,

                                          struct virtio_gpu_ctrl_command *VAR_1)

{

    struct virtio_gpu_resource_attach_backing VAR_2;

    struct iovec *VAR_3;

    int VAR_4;



    VIRTIO_GPU_FILL_CMD(VAR_2);

    trace_virtio_gpu_cmd_res_back_attach(VAR_2.resource_id);



    VAR_4 = virtio_gpu_create_mapping_iov(&VAR_2, VAR_1, NULL, &VAR_3);

    if (VAR_4 != 0) {

        VAR_1->error = VIRTIO_GPU_RESP_ERR_UNSPEC;

        return;

    }



    virgl_renderer_resource_attach_iov(VAR_2.resource_id,

                                       VAR_3, VAR_2.nr_entries);

}

static void FUNC_0(VirtIOGPU *VAR_0,
struct virtio_gpu_ctrl_command *VAR_1)
{ struct virtio_gpu_resource_attach_backing VAR_2; struct iovec *VAR_3; int VAR_4; VIRTIO_GPU_FILL_CMD(VAR_2); trace_virtio_gpu_cmd_res_back_attach(VAR_2.resource_id); VAR_4 = virtio_gpu_create_mapping_iov(&VAR_2, VAR_1, NULL, &VAR_3); if (VAR_4 != 0) { VAR_1->error = VIRTIO_GPU_RESP_ERR_UNSPEC; return; } virgl_renderer_resource_attach_iov(VAR_2.resource_id,
VAR_3, VAR_2.nr_entries); }