Home
last modified time | relevance | path

Searched full:error (Results 1 – 25 of 2859) sorted by relevance

12345678910>>...115

/qemu/rust/qemu-api/src/
H A Derror.rs3 //! Error propagation for QEMU Rust code
5 //! This module contains [`Error`], the bridge between Rust errors and
6 //! [`Result`](std::result::Result)s and QEMU's C [`Error`](bindings::Error)
9 //! For FFI code, [`Error`] provides functions to simplify conversion between
10 //! the Rust ([`Result<>`](std::result::Result)) and C (`Error**`) conventions:
12 //! * [`ok_or_propagate`](crate::Error::ok_or_propagate),
13 //! [`bool_or_propagate`](crate::Error::bool_or_propagate),
14 //! [`ptr_or_propagate`](crate::Error::ptr_or_propagate) can be used to build
15 //! a C return value while also propagating an error condition
17 //! * [`err_or_else`](crate::Error::err_or_else) and
[all …]
/qemu/include/qapi/
H A Derror.h2 * QEMU Error Objects
16 * Error reporting system loosely patterned after Glib's GError.
20 * - Functions that use Error to report errors have an Error **errp
24 * - You may pass NULL to not receive the error, &error_abort to abort
25 * on error, &error_fatal to exit(1) on error, or a pointer to a
26 * variable containing NULL to receive the error.
29 * errors and failing cleanly; handling the error is its caller's
30 * job. Since the value of @errp is about handling the error, the
38 * should set a new error, e.g. with error_setg(errp, ...), or
42 * failure. This can make the error checking more concise, and can
[all …]
/qemu/tests/qemu-iotests/
H A D251.out6 qemu-img: warning: error while reading block status at offset status_fail_offset_0: Input/output er…
7 qemu-img: warning: error while reading block status at offset status_fail_offset_1: Input/output er…
8 qemu-img: warning: error while reading block status at offset status_fail_offset_0: Input/output er…
9 qemu-img: warning: error while reading offset read_fail_offset_0: Input/output error
10 qemu-img: warning: error while reading block status at offset status_fail_offset_1: Input/output er…
11 qemu-img: warning: error while reading offset status_fail_offset_1: Input/output error
12 qemu-img: warning: error while reading offset read_fail_offset_2: Input/output error
13 qemu-img: warning: error while reading offset read_fail_offset_3: Input/output error
14 qemu-img: warning: error while reading offset read_fail_offset_4: Input/output error
15 qemu-img: warning: error while reading offset read_fail_offset_5: Input/output error
[all …]
H A D060.out6 ERROR cluster 3 refcount=1 reference=3
12 write failed: Input/output error
33 ERROR refcount block 0 refcount=2
34 ERROR cluster 2 refcount=1 reference=2
40 write failed: Input/output error
42 ERROR refcount block 0 refcount=2
43 ERROR cluster 2 refcount=1 reference=2
66 ERROR cluster 4 refcount=1 reference=2
76 write failed: Input/output error
78 ERROR cluster 4 refcount=1 reference=2
[all …]
H A D026.out7 write failed: Input/output error
12 write failed: Input/output error
17 qemu-io: Failed to flush the L2 table cache: Input/output error
18 qemu-io: Failed to flush the refcount block cache: Input/output error
19 write failed: Input/output error
24 qemu-io: Failed to flush the L2 table cache: Input/output error
25 qemu-io: Failed to flush the refcount block cache: Input/output error
26 write failed: Input/output error
57 write failed: Input/output error
58 read failed: Input/output error
[all …]
H A D026.out.nocache7 write failed: Input/output error
12 write failed: Input/output error
17 qemu-io: Failed to flush the L2 table cache: Input/output error
18 qemu-io: Failed to flush the refcount block cache: Input/output error
19 write failed: Input/output error
24 qemu-io: Failed to flush the L2 table cache: Input/output error
25 qemu-io: Failed to flush the refcount block cache: Input/output error
26 write failed: Input/output error
57 write failed: Input/output error
58 read failed: Input/output error
[all …]
H A D171.out24 write failed: Input/output error
27 write failed: Input/output error
30 write failed: Input/output error
33 writev failed: Input/output error
40 read failed: Input/output error
43 read failed: Input/output error
46 read failed: Input/output error
49 readv failed: Input/output error
63 write failed: Input/output error
71 read failed: Input/output error
[all …]
/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 …]
H A Dreplication.h42 * Error **errp);
43 * static void replication_do_checkpoint(ReplicationState *rs, Error **errp);
44 * static void replication_get_error(ReplicationState *rs, Error **errp);
46 * Error **errp);
56 * int flags, Error **errp)
108 * @get_error: callback to check if error occurred during replication
111 void (*start)(ReplicationState *rs, ReplicationMode mode, Error **errp);
112 void (*stop)(ReplicationState *rs, bool failover, Error **errp);
113 void (*checkpoint)(ReplicationState *rs, Error **errp);
114 void (*get_error)(ReplicationState *rs, Error **errp);
[all …]
/qemu/hw/acpi/
H A Dghes.c26 #include "qemu/error-report.h"
34 /* The max size in bytes for one error block */
37 /* Generic Hardware Error Source version 2 */
44 * The total size of Generic Error Data Entry
45 * ACPI 6.1/6.2: 18.3.2.7.1 Generic Error Data,
46 * Table 18-343 Generic Error Data Entry
50 /* The memory section CPER size, UEFI 2.6: N.2.5 Memory Error Section */
57 * Total size for Generic Error Status Block except Generic Error Data Entries
58 * ACPI 6.2: 18.3.2.7.1 Generic Error Data,
59 * Table 18-380 Generic Error Status Block
[all …]
/qemu/util/
H A Derror.c2 * QEMU Error Objects
16 #include "qapi/error.h"
17 #include "qemu/error-report.h"
18 #include "qapi/error-internal.h"
20 Error *error_abort;
21 Error *error_fatal;
22 Error *error_warn;
24 static void error_handle(Error **errp, Error *err) in error_handle()
28 fprintf(stderr, "Unexpected error in %s() at %.*s:%d:\n", in error_handle()
31 fprintf(stderr, "Unexpected error at %.*s:%d:\n", in error_handle()
[all …]
/qemu/tests/unit/
H A Dtest-error-report.c2 * Error reporting test
14 #include "qemu/error-report.h"
15 #include "qapi/error.h"
21 error_report("%s", "test error"); in test_error_report_simple()
30 test-error-report: test error*\ in test_error_report_simple()
31 test-error-report: warning: test warn*\ in test_error_report_simple()
32 test-error-report: info: test info*\ in test_error_report_simple()
50 test-error-report:some-file.c:7717: test error1*\ in test_error_report_loc()
51 test-error-report: test error2*\ in test_error_report_loc()
65 g_test_trap_assert_stderr("test-error-report: info: gmessage*"); in test_error_report_glog()
[all …]
H A Dtest-qmp-cmds.c7 #include "qapi/error.h"
16 UserDefThree *qmp_test_cmd_return_def_three(Error **errp) in qmp_test_cmd_return_def_three()
21 void qmp_user_def_cmd(Error **errp) in qmp_user_def_cmd()
25 void qmp_test_flags_command(Error **errp) in qmp_test_flags_command()
29 void qmp_cmd_success_response(Error **errp) in qmp_cmd_success_response()
33 void qmp_coroutine_cmd(Error **errp) in qmp_coroutine_cmd()
37 Empty2 *qmp_user_def_cmd0(Error **errp) in qmp_user_def_cmd0()
42 void qmp_user_def_cmd1(UserDefOne * ud1, Error **errp) in qmp_user_def_cmd1()
55 Error **errp) in qmp_test_features0()
60 void qmp_test_command_features1(Error **errp) in qmp_test_command_features1()
[all …]
/qemu/include/io/
H A Dchannel.h74 * - Direct support for QEMU Error object reporting
118 Error **errp);
125 Error **errp);
127 Error **errp);
132 Error **errp);
139 Error **errp);
144 Error **errp);
147 Error **errp);
155 Error **errp);
163 Error **errp);
[all …]
H A Dchannel-socket.h71 * @errp: pointer to a NULL-initialized error object
76 * Returns: the socket channel object, or NULL on error
80 Error **errp);
87 * @errp: pointer to a NULL-initialized error object
92 * an error occurs.
96 Error **errp);
128 * @errp: pointer to a NULL-initialized error object
133 * an error occurs.
138 Error **errp);
172 * @errp: pointer to a NULL-initialized error object
[all …]
/qemu/include/crypto/
H A Dhash.h74 * @errp: pointer to a NULL-initialized error object
90 * Returns: 0 on success, -1 on error
97 Error **errp);
106 * @errp: pointer to a NULL-initialized error object
122 * Returns: 0 on success, -1 on error
129 Error **errp);
137 * @errp: pointer to a NULL-initialized error object
146 * Returns: 0 on success, -1 on error
152 Error **errp);
159 * @errp: pointer to a NULL-initialized error object
[all …]
/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 …]
/qemu/include/qom/
H A Dobject_interfaces.h46 void (*complete)(UserCreatable *uc, Error **errp);
53 * @errp: if an error occurs, a pointer to an area to store the error
61 bool user_creatable_complete(UserCreatable *uc, Error **errp);
78 * @errp: if an error occurs, a pointer to an area to store the error
84 * Returns: the newly created object or NULL on error
88 Visitor *v, Error **errp);
93 * @errp: if an error occurs, a pointer to an area to store the error
98 void user_creatable_add_qapi(ObjectOptions *options, Error **errp);
103 * @errp: if an error occurs, a pointer to an area to store the error
110 * Returns: ObjectOptions on success, NULL when an error occurred (*errp is set
[all …]
/qemu/include/qemu/
H A Dsockets.h62 Error **errp);
63 int inet_parse(InetSocketAddress *addr, const char *str, Error **errp);
64 int inet_connect_saddr(InetSocketAddress *saddr, Error **errp);
68 int unix_listen(const char *path, Error **errp);
69 int unix_connect(const char *path, Error **errp);
72 SocketAddress *socket_parse(const char *str, Error **errp);
73 int socket_connect(SocketAddress *addr, Error **errp);
74 int socket_listen(SocketAddress *addr, int num, Error **errp);
75 void socket_listen_cleanup(int fd, Error **errp);
76 int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp);
[all …]
/qemu/scripts/coccinelle/
H A Derrp-guard.cocci1 // Use ERRP_GUARD() (see include/qapi/error.h)
29 // Switch unusual Error ** parameter names to errp
33 // "Error *const *errp" parameter.
39 // Skip util/error.c to not touch, for example, error_propagate() and
41 @ depends on !(file in "util/error.c") disable optional_qualifier@
47 - Error **_errp
48 + Error **errp
76 fn(..., Error **errp, ...)
90 Error *local_err = NULL;
101 // Warn when several Error * definitions are in the control flow.
[all …]
/qemu/qga/
H A Dcommands-windows-ssh.c26 #include "qapi/error.h"
58 * errp -> error structure to set when an error occurs
59 * returns: The path to the ssh folder in %PROGRAMDATA% or NULL if an error
62 static char *get_admin_ssh_folder(Error **errp) in get_admin_ssh_folder()
101 * errp -> Error structure to set any errors that occur.
105 Error **errp) in get_ssh_folder()
134 * errp -> Error structure to set any errors that occur
137 static bool create_acl_user(PWindowsUserInfo userInfo, PACL *pACL, Error **errp) in create_acl_user()
149 goto error; in create_acl_user()
177 goto error; in create_acl_user()
[all …]
/qemu/include/authz/
H A Dbase.h24 #include "qapi/error.h"
52 Error **errp);
60 * @errp: pointer to a NULL initialized error object
62 * Check if a user @identity is authorized. If an error
65 * Callers are recommended to treat the denial and error
66 * scenarios identically. Specifically the error info in
72 * an error occurred.
76 Error **errp);
83 * @errp: pointer to a NULL initialized error object
85 * Check if a user @identity is authorized. If an error
[all …]
/qemu/include/hw/xtensa/
H A Dxtensa-isa.h139 /* Error handling. */
142 * Error codes. The code for the most recent error condition can be
144 * xtensa_isa_ok, an error message containing additional information
146 * The error messages are stored in an internal buffer, which should
204 * XTENSA_UNDEFINED on error. The "from_chars" function first reads the
244 * XTENSA_UNDEFINED on error.
256 * stages before stage 0. Returns XTENSA_UNDEFINED on error.
282 /* Get the name of a format. Returns null on error. */
305 * All the other fields are set to zero. Returns non-zero on error.
314 * XTENSA_UNDEFINED on error.
[all …]
/qemu/include/hw/vfio/
H A Dvfio-container-base.h40 Error *error; member
87 Error **errp);
91 bool start, Error **errp);
97 uint64_t iova, uint64_t size, ram_addr_t ram_addr, Error **errp);
126 * @errp: pointer to Error*, to store an error if it happens.
128 * Returns true to indicate success and false for error.
130 bool (*setup)(VFIOContainerBase *bcontainer, Error **errp);
212 * @errp: pointer to Error*, to store an error if it happens.
214 * Returns true to indicate success and false for error.
217 AddressSpace *as, Error **errp);
[all …]
/qemu/include/migration/
H A Dregister.h49 * @errp: pointer to Error*, to store an error if it happens.
51 * Returns zero to indicate success and negative for error
53 int (*save_prepare)(void *opaque, Error **errp);
63 * @errp: pointer to Error*, to store an error if it happens.
65 * Returns zero to indicate success and negative for error
67 int (*save_setup)(QEMUFile *f, void *opaque, Error **errp);
88 * Returns zero to indicate success and negative for error
104 * Returns zero to indicate success and negative for error
121 * @errp: pointer to Error*, to store an error if it happens.
186 * negative to indicate an error.
[all …]

12345678910>>...115