static int qemu_rdma_reg_control(RDMAContext *rdma, int idx)

{

    rdma->wr_data[idx].control_mr = ibv_reg_mr(rdma->pd,

            rdma->wr_data[idx].control, RDMA_CONTROL_MAX_BUFFER,

            IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE);

    if (rdma->wr_data[idx].control_mr) {

        rdma->total_registrations++;

        return 0;

    }

    fprintf(stderr, "qemu_rdma_reg_control failed!\n");

    return -1;

}

static int qemu_rdma_reg_control(RDMAContext *rdma, int idx)

{

    rdma->wr_data[idx].control_mr = ibv_reg_mr(rdma->pd,

            rdma->wr_data[idx].control, RDMA_CONTROL_MAX_BUFFER,

            IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE);

    if (rdma->wr_data[idx].control_mr) {

        rdma->total_registrations++;

        return 0;

    }

    fprintf(stderr, "qemu_rdma_reg_control failed!\n");

    return -1;

}

static int FUNC_0(RDMAContext *VAR_0, int VAR_1)

{

    VAR_0->wr_data[VAR_1].control_mr = ibv_reg_mr(VAR_0->pd,

            VAR_0->wr_data[VAR_1].control, RDMA_CONTROL_MAX_BUFFER,

            IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE);

    if (VAR_0->wr_data[VAR_1].control_mr) {

        VAR_0->total_registrations++;

        return 0;

    }

    fprintf(stderr, "FUNC_0 failed!\n");

    return -1;

}

static int FUNC_0(RDMAContext *VAR_0, int VAR_1)
{ VAR_0->wr_data[VAR_1].control_mr = ibv_reg_mr(VAR_0->pd,
VAR_0->wr_data[VAR_1].control, RDMA_CONTROL_MAX_BUFFER,
IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE); if (VAR_0->wr_data[VAR_1].control_mr) { VAR_0->total_registrations++; return 0; } fprintf(stderr, "FUNC_0 failed!\n"); return -1; }