@@ -299,6 +299,10 @@ static const QErrorStringTable qerror_table[] = {
.error_fmt = QERR_VNC_SERVER_FAILED,
.desc = "Could not start VNC server on %(target)",
},
+ {
+ .error_fmt = QERR_PIPE_OR_SOCKET_FD,
+ .desc = "lseek() failed: the fd is associated with a pipe, socket",
+ },
{}
};
@@ -244,4 +244,7 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_VNC_SERVER_FAILED \
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
+#define QERR_PIPE_OR_SOCKET_FD \
+ "{ 'class': 'PipeOrSocketFD', 'data': {} }"
+
#endif /* QERROR_H */
The new error is QERR_PIPE_OR_SOCKET_FD, which is going to be used by the QAPI dump-guest-memory command. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)