[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/12 v12] QError: Introduce new error for the dump-
From: |
Wen Congyang |
Subject: |
[Qemu-devel] [PATCH 11/12 v12] QError: Introduce new error for the dump-guest-memory command |
Date: |
Wed, 18 Apr 2012 15:29:31 +0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4 |
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 <address@hidden>
---
qerror.c | 4 ++++
qerror.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/qerror.c b/qerror.c
index 96fbe71..117c42f 100644
--- a/qerror.c
+++ b/qerror.c
@@ -304,6 +304,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",
+ },
{}
};
diff --git a/qerror.h b/qerror.h
index 5c23c1f..e28cdad 100644
--- a/qerror.h
+++ b/qerror.h
@@ -248,4 +248,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 */
--
1.7.1
- [Qemu-devel] [PATCH 01/12 v12] Add API to create memory mapping list, (continued)
- [Qemu-devel] [PATCH 01/12 v12] Add API to create memory mapping list, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 02/12 v12] Add API to check whether a physical address is I/O address, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 03/12 v12] implement cpu_get_memory_mapping(), Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 04/12 v12] Add API to check whether paging mode is enabled, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 05/12 v12] Add API to get memory mapping, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 06/12 v12] Add API to get memory mapping without do paging, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 07/12 v12] target-i386: Add API to write elf notes to core file, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 08/12 v12] target-i386: Add API to write cpu status to core file, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 09/12 v12] target-i386: add API to get dump info, Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 10/12 v12] make gdb_id() generally avialable and rename it to cpu_index(), Wen Congyang, 2012/04/18
- [Qemu-devel] [PATCH 11/12 v12] QError: Introduce new error for the dump-guest-memory command,
Wen Congyang <=
- [Qemu-devel] [PATCH 12/12 v12] introduce a new monitor command 'dump-guest-memory' to dump guest's memory, Wen Congyang, 2012/04/18
- Re: [Qemu-devel] [PATCH 12/12 v12] introduce a new monitor command 'dump-guest-memory' to dump guest's memory, Wen Congyang, 2012/04/18
- Re: [Qemu-devel] [PATCH 12/12 v12] introduce a new monitor command 'dump-guest-memory' to dump guest's memory, Daniel P. Berrange, 2012/04/18