aboutsummaryrefslogtreecommitdiff
path: root/qga/main.c
diff options
context:
space:
mode:
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>2014-06-30 17:51:40 -0400
committerMichael Roth <mdroth@linux.vnet.ibm.com>2014-08-07 17:15:53 -0500
commit1281c08a46df94a66acca140bafc1785c0fcd47f (patch)
tree666a303743ddc930d1c2996ced364c8d00556406 /qga/main.c
parent46d4c5723e438be0fa564b8adeefed8f40f4a6ca (diff)
downloadqemu-1281c08a46df94a66acca140bafc1785c0fcd47f.zip
qemu-1281c08a46df94a66acca140bafc1785c0fcd47f.tar.gz
qemu-1281c08a46df94a66acca140bafc1785c0fcd47f.tar.bz2
qga: Disable unsupported commands by default
Currently management softwares cannot know whether a qemu-ga command is supported or not on the running platform until they actually execute it. This patch disables unsupported commands at launch time of qemu-ga, so that management softwares can check whether they are supported from 'enabled' property of the result from 'guest-info' command. Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/main.c')
-rw-r--r--qga/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qga/main.c b/qga/main.c
index 8b927c9..227f2bd 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -1144,6 +1144,7 @@ int main(int argc, char **argv)
goto out_bad;
}
+ blacklist = ga_command_blacklist_init(blacklist);
if (blacklist) {
s->blacklist = blacklist;
do {