From patchwork Fri Sep 25 14:03:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 522835 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D90FB14027C for ; Sat, 26 Sep 2015 00:19:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=d0LQ3uo2; dkim-atps=neutral Received: from localhost ([::1]:42091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTqP-0005uS-0o for incoming@patchwork.ozlabs.org; Fri, 25 Sep 2015 10:19:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTc9-00075s-Q3 for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfTc3-0003dR-BB for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:41 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:37796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTc3-0003d2-0x for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:35 -0400 Received: by wicfx3 with SMTP id fx3so21031457wic.0 for ; Fri, 25 Sep 2015 07:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=PLzc0pDLqetPwkgal4z9mWP647cpcit/2MtGoHajNsY=; b=d0LQ3uo2yWNq5fn4tNl6podgvrb8o19yB1rwgnXLQ00ETBWHi5UcPC+iErrI2kfvXi xc+zSqjM/ZmalwZN3Lil4ej72XhQW6WoKWfS/nSj4cuy4PB93GyNB6R4/6H/PDz5p4rf iXo5IZ8HK2LJ1ObmpMC7GrwBxCiKHruRW0VyvC6DzSmj/T/i4rjsTwz9jyXGvja9UCC8 ZsEZywXiOtwCtzxbbegt3QY5LXb15P7yu64EbhK9IXEJe+lq+oHzA5PBrch/Za6tR1zW MpM6026yBWV5/ysSaX63H8PUgQX+pMioxxG1z84yZGaU9wRuRpaqM1KRqolCuO+zhX4y s3KQ== X-Received: by 10.194.184.166 with SMTP id ev6mr6958998wjc.125.1443189874219; Fri, 25 Sep 2015 07:04:34 -0700 (PDT) Received: from localhost ([149.6.167.210]) by smtp.gmail.com with ESMTPSA id z2sm3457226wij.1.2015.09.25.07.04.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 07:04:33 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Fri, 25 Sep 2015 16:03:48 +0200 Message-Id: <1443189844-20341-21-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1443189844-20341-1-git-send-email-marcandre.lureau@redhat.com> References: <1443189844-20341-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::230 Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , armbru@redhat.com, mdroth@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH 20/36] qmp: remove old qmp-commands table X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Marc-André Lureau The table is no longer used. Signed-off-by: Marc-André Lureau Reviewed-by: Eric Blake --- monitor.c | 7 - qmp-commands-old.h | 554 ----------------------------------------------------- 2 files changed, 561 deletions(-) delete mode 100644 qmp-commands-old.h diff --git a/monitor.c b/monitor.c index a2eb228..4deef29 100644 --- a/monitor.c +++ b/monitor.c @@ -225,8 +225,6 @@ static int mon_refcount; static mon_cmd_t mon_cmds[]; static mon_cmd_t info_cmds[]; -static const mon_cmd_t qmp_cmds[]; - Monitor *cur_mon; static void monitor_command_cb(void *opaque, const char *cmdline, @@ -2048,11 +2046,6 @@ static mon_cmd_t mon_cmds[] = { { NULL, NULL, }, }; -static const mon_cmd_t qmp_cmds[] = { -#include "qmp-commands-old.h" - { /* NULL */ }, -}; - /*******************************************************************/ static const char *pch; diff --git a/qmp-commands-old.h b/qmp-commands-old.h deleted file mode 100644 index 956157d..0000000 --- a/qmp-commands-old.h +++ /dev/null @@ -1,554 +0,0 @@ - { - .name = "quit", - .args_type = "", - }, - { - .name = "eject", - .args_type = "force:-f,device:B", - }, - { - .name = "change", - .args_type = "device:B,target:F,arg:s?", - }, - { - .name = "screendump", - .args_type = "filename:F", - }, - { - .name = "stop", - .args_type = "", - }, - { - .name = "cont", - .args_type = "", - }, - { - .name = "system_wakeup", - .args_type = "", - }, - { - .name = "system_reset", - .args_type = "", - }, - { - .name = "system_powerdown", - .args_type = "", - }, - { - .name = "device_add", - .args_type = "device:O", - .params = "driver[,prop=value][,...]", - .help = "add device, like -device on the command line", - }, - { - .name = "device_del", - .args_type = "id:s", - }, - { - .name = "send-key", - .args_type = "keys:q,hold-time:i?", - }, - { - .name = "cpu", - .args_type = "index:i", - }, - { - .name = "cpu-add", - .args_type = "id:i", - }, - { - .name = "memsave", - .args_type = "val:l,size:i,filename:s,cpu:i?", - }, - { - .name = "pmemsave", - .args_type = "val:l,size:i,filename:s", - }, - { - .name = "inject-nmi", - .args_type = "", - }, - { - .name = "ringbuf-write", - .args_type = "device:s,data:s,format:s?", - }, - { - .name = "ringbuf-read", - .args_type = "device:s,size:i,format:s?", - }, - { - .name = "xen-save-devices-state", - .args_type = "filename:F", - }, - { - .name = "xen-set-global-dirty-log", - .args_type = "enable:b", - }, - { - .name = "migrate", - .args_type = "detach:-d,blk:-b,inc:-i,uri:s", - }, - { - .name = "migrate_cancel", - .args_type = "", - }, - { - .name = "migrate-incoming", - .args_type = "uri:s", - }, - { - .name = "migrate-set-cache-size", - .args_type = "value:o", - }, - { - .name = "query-migrate-cache-size", - .args_type = "", - }, - { - .name = "migrate_set_speed", - .args_type = "value:o", - }, - { - .name = "migrate_set_downtime", - .args_type = "value:T", - }, - { - .name = "client_migrate_info", - .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?", - .params = "protocol hostname port tls-port cert-subject", - .help = "set migration information for remote display", - }, - { - .name = "dump-guest-memory", - .args_type = "paging:b,protocol:s,begin:i?,end:i?,format:s?", - .params = "-p protocol [begin] [length] [format]", - .help = "dump guest memory to file", - }, - { - .name = "query-dump-guest-memory-capability", - .args_type = "", - }, -#if defined TARGET_S390X - { - .name = "dump-skeys", - .args_type = "filename:F", - }, -#endif - { - .name = "netdev_add", - .args_type = "netdev:O", - }, - { - .name = "netdev_del", - .args_type = "id:s", - }, - { - .name = "object-add", - .args_type = "qom-type:s,id:s,props:q?", - }, - { - .name = "object-del", - .args_type = "id:s", - }, - { - .name = "block_resize", - .args_type = "device:s?,node-name:s?,size:o", - }, - { - .name = "block-stream", - .args_type = "device:B,base:s?,speed:o?,backing-file:s?,on-error:s?", - }, - { - .name = "block-commit", - .args_type = "device:B,base:s?,top:s?,backing-file:s?,speed:o?", - }, - { - .name = "drive-backup", - .args_type = "sync:s,device:B,target:s,speed:i?,mode:s?,format:s?," - "bitmap:s?,on-source-error:s?,on-target-error:s?", - }, - { - .name = "blockdev-backup", - .args_type = "sync:s,device:B,target:B,speed:i?," - "on-source-error:s?,on-target-error:s?", - }, - { - .name = "block-job-set-speed", - .args_type = "device:B,speed:o", - }, - - { - .name = "block-job-cancel", - .args_type = "device:B,force:b?", - }, - { - .name = "block-job-pause", - .args_type = "device:B", - }, - { - .name = "block-job-resume", - .args_type = "device:B", - }, - { - .name = "block-job-complete", - .args_type = "device:B", - }, - { - .name = "transaction", - .args_type = "actions:q", - }, - { - .name = "block-dirty-bitmap-add", - .args_type = "node:B,name:s,granularity:i?", - }, - { - .name = "block-dirty-bitmap-remove", - .args_type = "node:B,name:s", - }, - { - .name = "block-dirty-bitmap-clear", - .args_type = "node:B,name:s", - }, - { - .name = "blockdev-snapshot-sync", - .args_type = "device:s?,node-name:s?,snapshot-file:s,snapshot-node-name:s?,format:s?,mode:s?", - }, - { - .name = "blockdev-snapshot-internal-sync", - .args_type = "device:B,name:s", - }, - { - .name = "blockdev-snapshot-delete-internal-sync", - .args_type = "device:B,id:s?,name:s?", - }, - { - .name = "drive-mirror", - .args_type = "sync:s,device:B,target:s,speed:i?,mode:s?,format:s?," - "node-name:s?,replaces:s?," - "on-source-error:s?,on-target-error:s?," - "unmap:b?," - "granularity:i?,buf-size:i?", - }, - { - .name = "change-backing-file", - .args_type = "device:s,image-node-name:s,backing-file:s", - }, - { - .name = "balloon", - .args_type = "value:M", - }, - { - .name = "set_link", - .args_type = "name:s,up:b", - }, - { - .name = "getfd", - .args_type = "fdname:s", - .params = "getfd name", - .help = "receive a file descriptor via SCM rights and assign it a name", - }, - { - .name = "closefd", - .args_type = "fdname:s", - .params = "closefd name", - .help = "close a file descriptor previously passed via SCM rights", - }, - { - .name = "add-fd", - .args_type = "fdset-id:i?,opaque:s?", - .params = "add-fd fdset-id opaque", - .help = "Add a file descriptor, that was passed via SCM rights, to an fd set", - }, - { - .name = "remove-fd", - .args_type = "fdset-id:i,fd:i?", - .params = "remove-fd fdset-id fd", - .help = "Remove a file descriptor from an fd set", - }, - { - .name = "query-fdsets", - .args_type = "", - .help = "Return information describing all fd sets", - }, - { - .name = "block_passwd", - .args_type = "device:s?,node-name:s?,password:s", - }, - { - .name = "block_set_io_throttle", - .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l,bps_max:l?,bps_rd_max:l?,bps_wr_max:l?,iops_max:l?,iops_rd_max:l?,iops_wr_max:l?,iops_size:l?,group:s?", - }, - { - .name = "set_password", - .args_type = "protocol:s,password:s,connected:s?", - }, - { - .name = "expire_password", - .args_type = "protocol:s,time:s", - }, - { - .name = "add_client", - .args_type = "protocol:s,fdname:s,skipauth:b?,tls:b?", - }, - { - .name = "qmp_capabilities", - .args_type = "", - .help = "enable QMP capabilities", - }, - { - .name = "human-monitor-command", - .args_type = "command-line:s,cpu-index:i?", - }, - { - .name = "query-version", - .args_type = "", - }, - { - .name = "query-commands", - .args_type = "", - }, - { - .name = "query-events", - .args_type = "", - }, - { - .name = "query-qmp-schema", - .args_type = "", - }, - { - .name = "query-chardev", - .args_type = "", - }, - { - .name = "query-chardev-backends", - .args_type = "", - }, - { - .name = "query-block", - .args_type = "", - }, - { - .name = "query-blockstats", - .args_type = "query-nodes:b?", - }, - { - .name = "query-cpus", - .args_type = "", - }, - { - .name = "query-iothreads", - .args_type = "", - }, - { - .name = "query-pci", - .args_type = "", - }, - { - .name = "query-kvm", - .args_type = "", - }, - { - .name = "query-status", - .args_type = "", - }, - { - .name = "query-mice", - .args_type = "", - }, - { - .name = "query-vnc", - .args_type = "", - }, - { - .name = "query-vnc-servers", - .args_type = "", - }, -#if defined(CONFIG_SPICE) - { - .name = "query-spice", - .args_type = "", - }, -#endif - { - .name = "query-name", - .args_type = "", - }, - { - .name = "query-uuid", - .args_type = "", - }, - { - .name = "query-command-line-options", - .args_type = "option:s?", - }, - { - .name = "query-migrate", - .args_type = "", - }, - { - .name = "migrate-set-capabilities", - .args_type = "capabilities:q", - .params = "capability:s,state:b", - }, - { - .name = "query-migrate-capabilities", - .args_type = "", - }, - { - .name = "migrate-set-parameters", - .args_type = - "compress-level:i?,compress-threads:i?,decompress-threads:i?", - }, - { - .name = "query-migrate-parameters", - .args_type = "", - }, - { - .name = "query-balloon", - .args_type = "", - }, - - { - .name = "query-block-jobs", - .args_type = "", - }, - - { - .name = "qom-list", - .args_type = "path:s", - }, - - { - .name = "qom-set", - .args_type = "path:s,property:s,value:q", - }, - - { - .name = "qom-get", - .args_type = "path:s,property:s", - }, - - { - .name = "nbd-server-start", - .args_type = "addr:q", - }, - { - .name = "nbd-server-add", - .args_type = "device:B,writable:b?", - }, - { - .name = "nbd-server-stop", - .args_type = "", - }, - - { - .name = "change-vnc-password", - .args_type = "password:s", - }, - { - .name = "qom-list-types", - .args_type = "implements:s?,abstract:b?", - }, - - { - .name = "device-list-properties", - .args_type = "typename:s", - }, - - { - .name = "query-machines", - .args_type = "", - }, - - { - .name = "query-cpu-definitions", - .args_type = "", - }, - - { - .name = "query-target", - .args_type = "", - }, - - { - .name = "query-tpm", - .args_type = "", - }, - { - .name = "query-tpm-models", - .args_type = "", - }, - { - .name = "query-tpm-types", - .args_type = "", - }, - { - .name = "chardev-add", - .args_type = "id:s,backend:q", - }, - { - .name = "chardev-remove", - .args_type = "id:s", - }, - { - .name = "query-rx-filter", - .args_type = "name:s?", - }, - { - .name = "blockdev-add", - .args_type = "options:q", - }, - { - .name = "query-named-block-nodes", - .args_type = "", - }, - { - .name = "query-memdev", - .args_type = "", - }, - { - .name = "query-memory-devices", - .args_type = "", - }, - { - .name = "query-acpi-ospm-status", - .args_type = "", - }, -#if defined TARGET_I386 - { - .name = "rtc-reset-reinjection", - .args_type = "", - }, -#endif - { - .name = "trace-event-get-state", - .args_type = "name:s", - }, - { - .name = "trace-event-set-state", - .args_type = "name:s,enable:b,ignore-unavailable:b?", - }, - { - .name = "x-input-send-event", - .args_type = "console:i?,events:q", - }, - { - .name = "block-set-write-threshold", - .args_type = "node-name:s,write-threshold:l", - }, - { - .name = "query-rocker", - .args_type = "name:s", - }, - { - .name = "query-rocker-ports", - .args_type = "name:s", - }, - { - .name = "query-rocker-of-dpa-flows", - .args_type = "name:s,tbl-id:i?", - }, - { - .name = "query-rocker-of-dpa-groups", - .args_type = "name:s,type:i?", - },