summaryrefslogtreecommitdiff
path: root/qerror.h
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-12-06 22:03:42 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-12 17:06:21 -0600
commitabd6cf6d8e6be55a6535bf27b692bdf520462c15 (patch)
treefec8702ec9241e5fdb04e56574b69276686f3ad4 /qerror.h
parent4cb016587a34fee08f42ab04ba6daa7842f41228 (diff)
downloadqemu-abd6cf6d8e6be55a6535bf27b692bdf520462c15.tar.gz
qemu-abd6cf6d8e6be55a6535bf27b692bdf520462c15.tar.bz2
qemu-abd6cf6d8e6be55a6535bf27b692bdf520462c15.zip
guest agent: add RPC blacklist command-line option
This adds a command-line option, -b/--blacklist, that accepts a comma-seperated list of RPCs to disable, or prints a list of available RPCs if passed "?". In consequence this also adds general blacklisting and RPC listing facilities to the new QMP dispatch/registry facilities, should the QMP monitor ever have a need for such a thing. Ideally, to avoid support/compatability issues in the future, blacklisting guest agent functionality will be the exceptional case, but we add the functionality here to handle guest administrators with specific requirements. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qerror.h b/qerror.h
index 1fee39d5c9..688e700223 100644
--- a/qerror.h
+++ b/qerror.h
@@ -66,6 +66,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_COMMAND_NOT_FOUND \
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"
+#define QERR_COMMAND_DISABLED \
+ "{ 'class': 'CommandDisabled', 'data': { 'name': %s } }"
+
#define QERR_DEVICE_ENCRYPTED \
"{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"