def METHOD_NAME(vm, name, kind, args):
    backend = {'type': kind, 'data': args}
    reply = cmd_qmp_log(vm, 'chardev-add', {'id': name,
                                            'backend': backend})
    return reply