-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkvm-QError-New-QERR_INVALID_CPU_INDEX.patch
62 lines (54 loc) · 1.9 KB
/
kvm-QError-New-QERR_INVALID_CPU_INDEX.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
From 9115fdf41dd7f5fb93a47608efe95a0e6669122c Mon Sep 17 00:00:00 2001
From: Luiz Capitulino <[email protected]>
Date: Thu, 18 Mar 2010 14:43:25 -0300
Subject: [PATCH 06/29] QError: New QERR_INVALID_CPU_INDEX
RH-Author: Luiz Capitulino <[email protected]>
Message-id: <[email protected]>
Patchwork-id: 7888
O-Subject: [PATCH 5/6] QError: New QERR_INVALID_CPU_INDEX
Bugzilla: 574642
RH-Acked-by: Markus Armbruster <[email protected]>
RH-Acked-by: Kevin Wolf <[email protected]>
RH-Acked-by: Juan Quintela <[email protected]>
From: Markus Armbruster <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
(cherry picked from commit 64a34bb14c0e358a6b2f14805e59ef25bf62d6d5)
---
qerror.c | 4 ++++
qerror.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
Signed-off-by: Eduardo Habkost <[email protected]>
---
qerror.c | 4 ++++
qerror.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/qerror.c b/qerror.c
index 2f657f4..6c2aba0 100644
--- a/qerror.c
+++ b/qerror.c
@@ -81,6 +81,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Invalid block format %(name)",
},
{
+ .error_fmt = QERR_INVALID_CPU_INDEX,
+ .desc = "Invalid CPU index",
+ },
+ {
.error_fmt = QERR_INVALID_PARAMETER,
.desc = "Invalid parameter %(name)",
},
diff --git a/qerror.h b/qerror.h
index ee59615..57c5b97 100644
--- a/qerror.h
+++ b/qerror.h
@@ -70,6 +70,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_INVALID_BLOCK_FORMAT \
"{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }"
+#define QERR_INVALID_CPU_INDEX \
+ "{ 'class': 'InvalidCPUIndex', 'data': {} }"
+
#define QERR_INVALID_PARAMETER \
"{ 'class': 'InvalidParameter', 'data': { 'name': %s } }"
--
1.7.0.3