Home
last modified time | relevance | path

Searched refs:errp (Results 1 – 25 of 1752) sorted by relevance

12345678910>>...71

/openbmc/qemu/ui/
H A Dui-qmp-cmds.c32 void qmp_set_password(SetPasswordOptions *opts, Error **errp) in qmp_set_password() argument
37 if (!qemu_using_spice(errp)) { in qmp_set_password()
47 error_setg(errp, "parameter 'connected' must be 'keep'" in qmp_set_password()
59 error_setg(errp, "Could not set password"); in qmp_set_password()
63 void qmp_expire_password(ExpirePasswordOptions *opts, Error **errp) in qmp_expire_password() argument
85 error_setg(errp, "Parameter 'time' doesn't take value '%s'", in qmp_expire_password()
93 if (!qemu_using_spice(errp)) { in qmp_expire_password()
103 error_setg(errp, "Could not set password expire time"); in qmp_expire_password()
108 void qmp_change_vnc_password(const char *password, Error **errp) in qmp_change_vnc_password() argument
111 error_setg(errp, "Could not set password"); in qmp_change_vnc_password()
[all …]
/openbmc/qemu/nbd/
H A Dclient.c69 Error **errp) in nbd_send_option_request() argument
84 if (nbd_write(ioc, &req, sizeof(req), errp) < 0) { in nbd_send_option_request()
85 error_prepend(errp, "Failed to send option request header: "); in nbd_send_option_request()
89 if (len && nbd_write(ioc, (char *) data, len, errp) < 0) { in nbd_send_option_request()
90 error_prepend(errp, "Failed to send option request data: "); in nbd_send_option_request()
115 NBDOptionReply *reply, Error **errp) in nbd_receive_option_reply() argument
118 if (nbd_read(ioc, reply, sizeof(*reply), "option reply", errp) < 0) { in nbd_receive_option_reply()
132 error_setg(errp, "Unexpected option reply magic"); in nbd_receive_option_reply()
137 error_setg(errp, "Unexpected option type %u (%s), expected %u (%s)", in nbd_receive_option_reply()
155 bool strict, Error **errp) in nbd_handle_reply_err() argument
[all …]
/openbmc/qemu/util/
H A Dqemu-sockets.c127 Error **errp) in inet_ai_family_from_address() argument
131 error_setg(errp, "Cannot disable IPv4 and IPv6 at same time"); in inet_ai_family_from_address()
211 Error **errp) in inet_listen_saddr() argument
224 error_setg(errp, "keep-alive option is not supported for passive " in inet_listen_saddr()
235 ai.ai_family = inet_ai_family_from_address(saddr, errp); in inet_listen_saddr()
236 if (*errp) { in inet_listen_saddr()
241 error_setg(errp, "host not specified"); in inet_listen_saddr()
254 error_setg(errp, "port not specified"); in inet_listen_saddr()
258 error_setg(errp, "can't convert to a number: %s", port); in inet_listen_saddr()
263 error_setg(errp, "port %s out of range", port); in inet_listen_saddr()
[all …]
H A Derror.c32 static void error_handle(Error **errp, Error *err) in error_handle() argument
34 if (errp == &error_abort) { in error_handle()
43 if (errp == &error_fatal) { in error_handle()
47 if (errp == &error_warn) { in error_handle()
49 } else if (errp && !*errp) { in error_handle()
50 *errp = err; in error_handle()
57 static void error_setv(Error **errp, in error_setv() argument
65 if (errp == NULL) { in error_setv()
68 assert(*errp == NULL); in error_setv()
82 error_handle(errp, err); in error_setv()
[all …]
/openbmc/qemu/block/monitor/
H A Dbitmap-qmp-cmds.c56 Error **errp) in block_dirty_bitmap_lookup() argument
64 error_setg(errp, "Node cannot be NULL"); in block_dirty_bitmap_lookup()
68 error_setg(errp, "Bitmap name cannot be NULL"); in block_dirty_bitmap_lookup()
73 error_setg(errp, "Node '%s' not found", node); in block_dirty_bitmap_lookup()
79 error_setg(errp, "Dirty bitmap '%s' not found", name); in block_dirty_bitmap_lookup()
94 Error **errp) in qmp_block_dirty_bitmap_add() argument
100 error_setg(errp, "Bitmap name cannot be empty"); in qmp_block_dirty_bitmap_add()
104 bs = bdrv_lookup_bs(node, node, errp); in qmp_block_dirty_bitmap_add()
111 error_setg(errp, "Granularity must be power of 2 " in qmp_block_dirty_bitmap_add()
129 !bdrv_can_store_new_dirty_bitmap(bs, name, granularity, errp)) in qmp_block_dirty_bitmap_add()
[all …]
/openbmc/qemu/include/qapi/
H A Derror.h317 #define error_setg(errp, fmt, ...) \ argument
318 error_setg_internal((errp), __FILE__, __LINE__, __func__, \
320 void error_setg_internal(Error **errp,
333 #define error_setg_errno(errp, os_error, fmt, ...) \ argument
334 error_setg_errno_internal((errp), __FILE__, __LINE__, __func__, \
336 void error_setg_errno_internal(Error **errp,
347 #define error_setg_win32(errp, win32_err, fmt, ...) \ argument
348 error_setg_win32_internal((errp), __FILE__, __LINE__, __func__, \
350 void error_setg_win32_internal(Error **errp,
392 void error_vprepend(Error *const *errp, const char *fmt, va_list ap)
[all …]
H A Dvisitor.h300 size_t size, Error **errp);
315 bool visit_check_struct(Visitor *v, Error **errp);
360 size_t size, Error **errp);
391 bool visit_check_list(Visitor *v, Error **errp);
430 Error **errp);
474 unsigned special_features, Error **errp);
523 const QEnumLookup *lookup, Error **errp);
551 bool visit_type_int(Visitor *v, const char *name, int64_t *obj, Error **errp);
558 Error **errp);
565 Error **errp);
[all …]
/openbmc/qemu/crypto/
H A Dtlscredsx509.c42 Error **errp) in qcrypto_tls_creds_check_cert_times() argument
47 error_setg_errno(errp, errno, "cannot get current time"); in qcrypto_tls_creds_check_cert_times()
52 error_setg(errp, in qcrypto_tls_creds_check_cert_times()
63 error_setg(errp, in qcrypto_tls_creds_check_cert_times()
83 Error **errp) in qcrypto_tls_creds_check_cert_basic_constraints() argument
93 error_setg(errp, isServer ? in qcrypto_tls_creds_check_cert_basic_constraints()
103 error_setg(errp, in qcrypto_tls_creds_check_cert_basic_constraints()
112 error_setg(errp, in qcrypto_tls_creds_check_cert_basic_constraints()
119 error_setg(errp, in qcrypto_tls_creds_check_cert_basic_constraints()
134 Error **errp) in qcrypto_tls_creds_check_cert_key_usage() argument
[all …]
H A Dhash.c52 Error **errp) in qcrypto_hash_bytesv() argument
54 g_autoptr(QCryptoHash) ctx = qcrypto_hash_new(alg, errp); in qcrypto_hash_bytesv()
60 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_bytesv()
61 qcrypto_hash_finalize_bytes(ctx, result, resultlen, errp) < 0) { in qcrypto_hash_bytesv()
74 Error **errp) in qcrypto_hash_bytes() argument
78 return qcrypto_hash_bytesv(alg, &iov, 1, result, resultlen, errp); in qcrypto_hash_bytes()
84 Error **errp) in qcrypto_hash_updatev() argument
88 return drv->hash_update(hash, iov, niov, errp); in qcrypto_hash_updatev()
94 Error **errp) in qcrypto_hash_update() argument
98 return qcrypto_hash_updatev(hash, &iov, 1, errp); in qcrypto_hash_update()
[all …]
H A Dblock-luks.c154 Error **errp) in qcrypto_block_luks_cipher_name_lookup() argument
176 error_setg(errp, "Algorithm '%s' with key size %d bytes not supported", in qcrypto_block_luks_cipher_name_lookup()
183 Error **errp) in qcrypto_block_luks_cipher_alg_lookup() argument
197 error_setg(errp, "Algorithm '%s' not supported", in qcrypto_block_luks_cipher_alg_lookup()
207 Error **errp) in qcrypto_block_luks_name_lookup() argument
212 error_setg(errp, "%s '%s' not supported", type, name); in qcrypto_block_luks_name_lookup()
218 #define qcrypto_block_luks_cipher_mode_lookup(name, errp) \ argument
222 errp)
224 #define qcrypto_block_luks_hash_name_lookup(name, errp) \ argument
228 errp)
[all …]
H A Dtlssession.c137 Error **errp) in qcrypto_tls_session_new() argument
157 error_setg(errp, "Credentials endpoint doesn't match session"); in qcrypto_tls_session_new()
167 error_setg(errp, "Cannot initialize TLS session: %s", in qcrypto_tls_session_new()
188 error_setg(errp, "Unable to set TLS session priority %s: %s", in qcrypto_tls_session_new()
204 error_setg(errp, "Cannot set session credentials: %s", in qcrypto_tls_session_new()
224 error_setg(errp, "Unable to set TLS session priority %s: %s", in qcrypto_tls_session_new()
240 error_setg(errp, "Cannot set session credentials: %s", in qcrypto_tls_session_new()
254 error_setg(errp, "Cannot set default TLS session priority %s: %s", in qcrypto_tls_session_new()
262 error_setg(errp, "Cannot set session credentials: %s", in qcrypto_tls_session_new()
274 error_setg(errp, "Unsupported TLS credentials type %s", in qcrypto_tls_session_new()
[all …]
H A Dsecret_common.c36 Error **errp) in qcrypto_secret_decrypt() argument
50 errp) < 0) { in qcrypto_secret_decrypt()
55 error_setg(errp, "Key should be 32 bytes in length"); in qcrypto_secret_decrypt()
60 error_setg(errp, "IV is required to decrypt secret"); in qcrypto_secret_decrypt()
64 iv = qbase64_decode(secret->iv, -1, &ivlen, errp); in qcrypto_secret_decrypt()
69 error_setg(errp, "IV should be 16 bytes in length not %zu", in qcrypto_secret_decrypt()
77 errp); in qcrypto_secret_decrypt()
82 if (qcrypto_cipher_setiv(aes, iv, ivlen, errp) < 0) { in qcrypto_secret_decrypt()
90 errp); in qcrypto_secret_decrypt()
103 errp) < 0) { in qcrypto_secret_decrypt()
[all …]
H A Dhash-afalg.c26 Error **errp) in qcrypto_afalg_hash_format_name() argument
55 error_setg(errp, "Unsupported hash algorithm %d", alg); in qcrypto_afalg_hash_format_name()
71 bool is_hmac, Error **errp) in qcrypto_afalg_hash_hmac_ctx_new() argument
76 name = qcrypto_afalg_hash_format_name(alg, is_hmac, errp); in qcrypto_afalg_hash_hmac_ctx_new()
81 afalg = qcrypto_afalg_comm_alloc(AFALG_TYPE_HASH, name, errp); in qcrypto_afalg_hash_hmac_ctx_new()
93 error_setg_errno(errp, errno, "Set hmac key failed"); in qcrypto_afalg_hash_hmac_ctx_new()
104 Error **errp) in qcrypto_afalg_hash_ctx_new() argument
106 return qcrypto_afalg_hash_hmac_ctx_new(alg, NULL, 0, false, errp); in qcrypto_afalg_hash_ctx_new()
112 Error **errp) in qcrypto_afalg_hmac_ctx_new() argument
114 return qcrypto_afalg_hash_hmac_ctx_new(alg, key, nkey, true, errp); in qcrypto_afalg_hmac_ctx_new()
[all …]
/openbmc/qemu/block/
H A Dqapi-sysemu.c43 Error **errp) in qmp_get_blk() argument
48 error_setg(errp, "Need exactly one of 'device' and 'id'"); in qmp_get_blk()
53 blk = blk_by_qdev_id(qdev_id, errp); in qmp_get_blk()
57 error_set(errp, ERROR_CLASS_DEVICE_NOT_FOUND, in qmp_get_blk()
77 bool force, Error **errp) in do_open_tray() argument
83 blk = qmp_get_blk(blk_name, qdev_id, errp); in do_open_tray()
89 error_setg(errp, "Device '%s' is not removable", device); in do_open_tray()
94 error_setg(errp, "Device '%s' does not have a tray", device); in do_open_tray()
112 error_setg(errp, "Device '%s' is locked and force was not specified, " in do_open_tray()
123 Error **errp) in qmp_blockdev_open_tray() argument
[all …]
/openbmc/qemu/
H A Dblockdev.c319 static int parse_block_error_action(const char *buf, bool is_read, Error **errp) in parse_block_error_action() argument
330 error_setg(errp, "'%s' invalid %s error action", in parse_block_error_action()
337 Error **errp) in parse_stats_intervals() argument
351 error_setg(errp, "Invalid interval length: %s", str); in parse_stats_intervals()
363 error_setg(errp, "Invalid interval length: %" PRId64, length); in parse_stats_intervals()
370 error_setg(errp, "The specification of stats-intervals is invalid"); in parse_stats_intervals()
382 BlockdevDetectZeroesOptions *detect_zeroes, Error **errp) in extract_common_blockdev_options() argument
394 error_setg(errp, "invalid aio option"); in extract_common_blockdev_options()
449 if (!throttle_is_valid(throttle_cfg, errp)) { in extract_common_blockdev_options()
461 error_propagate(errp, local_error); in extract_common_blockdev_options()
[all …]
H A Djob-qmp.c35 static Job *find_job_locked(const char *id, Error **errp) in find_job_locked() argument
41 error_setg(errp, "Job not found"); in find_job_locked()
48 void qmp_job_cancel(const char *id, Error **errp) in qmp_job_cancel() argument
53 job = find_job_locked(id, errp); in qmp_job_cancel()
60 job_user_cancel_locked(job, true, errp); in qmp_job_cancel()
63 void qmp_job_pause(const char *id, Error **errp) in qmp_job_pause() argument
68 job = find_job_locked(id, errp); in qmp_job_pause()
75 job_user_pause_locked(job, errp); in qmp_job_pause()
78 void qmp_job_resume(const char *id, Error **errp) in qmp_job_resume() argument
83 job = find_job_locked(id, errp); in qmp_job_resume()
[all …]
/openbmc/qemu/hw/core/
H A Deif.c90 Error **errp) in read_eif_header() argument
97 error_setg(errp, "Failed to read EIF header"); in read_eif_header()
102 error_setg(errp, "Invalid EIF image. Magic mismatch."); in read_eif_header()
123 error_setg(errp, "Invalid EIF image. Section size out of bounds"); in read_eif_header()
134 uint32_t *crc, Error **errp) in read_eif_section_header() argument
141 error_setg(errp, "Failed to read EIF section header"); in read_eif_section_header()
156 static bool get_tmp_file(const char *template, char **tmp_path, Error **errp) in get_tmp_file() argument
163 error_setg(errp, "Failed to create temporary file for template %s", in get_tmp_file()
190 uint8_t *kernel, uint32_t *crc, Error **errp) in read_eif_kernel() argument
196 if (!get_tmp_file("eif-kernel-XXXXXX", kernel_path, errp)) { in read_eif_kernel()
[all …]
/openbmc/qemu/hw/ppc/
H A Dspapr_caps.c66 void (*apply)(SpaprMachineState *spapr, uint8_t val, Error **errp);
68 uint8_t val, Error **errp);
73 void *opaque, Error **errp) in spapr_cap_get_bool() argument
79 visit_type_bool(v, name, &value, errp); in spapr_cap_get_bool()
83 void *opaque, Error **errp) in spapr_cap_set_bool() argument
89 if (!visit_type_bool(v, name, &value, errp)) { in spapr_cap_set_bool()
99 void *opaque, Error **errp) in spapr_cap_get_string() argument
107 error_setg(errp, "Invalid value (%d) for cap-%s", value, cap->name); in spapr_cap_get_string()
113 visit_type_str(v, name, &val, errp); in spapr_cap_get_string()
117 void *opaque, Error **errp) in spapr_cap_set_string() argument
[all …]
/openbmc/qemu/qapi/
H A Dqapi-forward-visitor.c43 Error **errp) in forward_field_translate_name() argument
52 error_setg(errp, QERR_MISSING_PARAMETER, *name); in forward_field_translate_name()
56 static bool forward_field_check_struct(Visitor *v, Error **errp) in forward_field_check_struct() argument
60 return visit_check_struct(ffv->target, errp); in forward_field_check_struct()
64 size_t size, Error **errp) in forward_field_start_struct() argument
68 if (!forward_field_translate_name(ffv, &name, errp)) { in forward_field_start_struct()
71 if (!visit_start_struct(ffv->target, name, obj, size, errp)) { in forward_field_start_struct()
89 Error **errp) in forward_field_start_list() argument
93 if (!forward_field_translate_name(ffv, &name, errp)) { in forward_field_start_list()
97 return visit_start_list(ffv->target, name, list, size, errp); in forward_field_start_list()
[all …]
H A Dqapi-visit-core.c45 size_t size, Error **errp) in visit_start_struct() argument
54 ok = v->start_struct(v, name, obj, size, errp); in visit_start_struct()
61 bool visit_check_struct(Visitor *v, Error **errp) in visit_check_struct() argument
64 return v->check_struct ? v->check_struct(v, errp) : true; in visit_check_struct()
74 size_t size, Error **errp) in visit_start_list() argument
80 ok = v->start_list(v, name, list, size, errp); in visit_start_list()
94 bool visit_check_list(Visitor *v, Error **errp) in visit_check_list() argument
97 return v->check_list ? v->check_list(v, errp) : true; in visit_check_list()
108 Error **errp) in visit_start_alternate() argument
119 ok = v->start_alternate(v, name, obj, size, errp); in visit_start_alternate()
[all …]
/openbmc/qemu/include/block/
H A Dblock-global-state.h57 Error **errp);
62 Error **errp);
65 QemuOpts *opts, Error **errp);
68 bdrv_co_create_file(const char *filename, QemuOpts *opts, Error **errp);
72 Error **errp);
75 bdrv_replace_node(BlockDriverState *from, BlockDriverState *to, Error **errp);
78 Error **errp);
80 int flags, Error **errp);
81 int bdrv_drop_filter(BlockDriverState *bs, Error **errp);
86 BdrvChildRole child_role, bool allow_none, Error **errp);
[all …]
/openbmc/qemu/qga/
H A Dcommands-windows-ssh.c62 static char *get_admin_ssh_folder(Error **errp) in get_admin_ssh_folder() argument
74 error_setg(errp, "Failed to retrieve ProgramData folder"); in get_admin_ssh_folder()
82 error_setg(errp, in get_admin_ssh_folder()
105 Error **errp) in get_ssh_folder() argument
111 return get_admin_ssh_folder(errp); in get_ssh_folder()
118 error_setg_win32(errp, GetLastError(), in get_ssh_folder()
137 static bool create_acl_user(PWindowsUserInfo userInfo, PACL *pACL, Error **errp) in create_acl_user() argument
147 error_setg_win32(errp, GetLastError(), "failed to retrieve user %s SID", in create_acl_user()
174 error_setg_win32(errp, GetLastError(), in create_acl_user()
197 static bool create_acl_base(PACL *pACL, Error **errp) in create_acl_base() argument
[all …]
/openbmc/qemu/include/io/
H A Dchannel.h117 Error **errp);
124 Error **errp);
126 Error **errp);
131 Error **errp);
138 Error **errp);
143 Error **errp);
146 Error **errp);
154 Error **errp);
162 Error **errp);
165 Error **errp);
[all …]
/openbmc/qemu/hw/block/
H A Dxen-block.c78 static bool xen_block_find_free_vdev(XenBlockDevice *blockdev, Error **errp) in xen_block_find_free_vdev() argument
112 error_setg_errno(errp, errno, "cannot read %s", fe_path); in xen_block_find_free_vdev()
137 error_setg(errp, "cannot find device vdev for block device"); in xen_block_find_free_vdev()
152 static char *xen_block_get_name(XenDevice *xendev, Error **errp) in xen_block_get_name() argument
158 !xen_block_find_free_vdev(blockdev, errp)) { in xen_block_get_name()
164 static void xen_block_disconnect(XenDevice *xendev, Error **errp) in xen_block_disconnect() argument
175 static void xen_block_connect(XenDevice *xendev, Error **errp) in xen_block_connect() argument
194 error_setg(errp, "logical_block_size != %u not supported by frontend", in xen_block_connect()
206 error_setg(errp, "failed to read ring-ref"); in xen_block_connect()
222 error_setg(errp, "failed to read %s", key); in xen_block_connect()
[all …]
/openbmc/qemu/net/
H A Dclients.h30 NetClientState *peer, Error **errp);
34 NetClientState *peer, Error **errp);
38 NetClientState *peer, Error **errp);
41 NetClientState *peer, Error **errp);
44 NetClientState *peer, Error **errp);
47 NetClientState *peer, Error **errp);
50 NetClientState *peer, Error **errp);
53 NetClientState *peer, Error **errp);
56 NetClientState *peer, Error **errp);
59 NetClientState *peer, Error **errp);
[all …]

12345678910>>...71