From patchwork Fri Sep 25 14:03:41 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: 522826 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 6E19614017E for ; Sat, 26 Sep 2015 00:14:25 +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=hsI08oTB; dkim-atps=neutral Received: from localhost ([::1]:42041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTlX-0006Ur-1O for incoming@patchwork.ozlabs.org; Fri, 25 Sep 2015 10:14:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTc0-0006mU-93 for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfTbt-0003U8-Pw for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:32 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:34415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTbt-0003TW-93 for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:25 -0400 Received: by wicfx3 with SMTP id fx3so23382380wic.1 for ; Fri, 25 Sep 2015 07:04:24 -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=j0qpfW7Vcb+TDhbUVT3dsMca96CP4dMLvK6IhUrzjsU=; b=hsI08oTB//TBJQl6/aSoszHi+NlEkq99hSTvsJUAlbKQejts6/GTLam6V30PxgJ0tZ 3Fs9wAWe2kISb94BZbFsbm2U6eVE2/qzRsCCRaN92cVh//aFKjgXAh8ZDADSGhSmAaRY /4O6XofcxapDDLgLekMWQRXAARQGGwO+28Rfa52Yt8kwRi8j6oJveA8/iOcLZjRfK5yc miAPdZ2tQM3ZKdl/d875b0na5hA4mo4Is+q1WkciA+OH7ZCHWraBmhWwefhLEFbP65jJ IGUYdv5AH+kazOF5QSEHFHY8YXRuN8uzuSgxQ5S7ba4tnmfvSmfB0lifr0Y9bW/EnEAb Ao9A== X-Received: by 10.180.91.15 with SMTP id ca15mr3881366wib.12.1443189864642; Fri, 25 Sep 2015 07:04:24 -0700 (PDT) Received: from localhost ([149.6.167.210]) by smtp.gmail.com with ESMTPSA id hs5sm3432809wib.6.2015.09.25.07.04.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 07:04:23 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Fri, 25 Sep 2015 16:03:41 +0200 Message-Id: <1443189844-20341-14-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::229 Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , armbru@redhat.com, mdroth@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH 13/36] build-sys: do not generate qmp-commands-old.h 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 It's static file now. Signed-off-by: Marc-André Lureau --- Makefile.target | 7 +- qmp-commands-old.h | 683 +++++++++++++++++++++++++++++++++++++++++++++++++++++ qmp-commands.hx | 683 ----------------------------------------------------- 3 files changed, 685 insertions(+), 688 deletions(-) create mode 100644 qmp-commands-old.h delete mode 100644 qmp-commands.hx diff --git a/Makefile.target b/Makefile.target index 962d004..a1cd219 100644 --- a/Makefile.target +++ b/Makefile.target @@ -154,7 +154,7 @@ else obj-y += hw/$(TARGET_BASE_ARCH)/ endif -GENERATED_HEADERS += hmp-commands.h hmp-commands-info.h qmp-commands-old.h +GENERATED_HEADERS += hmp-commands.h hmp-commands-info.h endif # CONFIG_SOFTMMU @@ -205,13 +205,10 @@ hmp-commands.h: $(SRC_PATH)/hmp-commands.hx hmp-commands-info.h: $(SRC_PATH)/hmp-commands-info.hx $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") -qmp-commands-old.h: $(SRC_PATH)/qmp-commands.hx - $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") - clean: rm -f *.a *~ $(PROGS) rm -f $(shell find . -name '*.[od]') - rm -f hmp-commands.h qmp-commands-old.h gdbstub-xml.c + rm -f hmp-commands.h gdbstub-xml.c ifdef CONFIG_TRACE_SYSTEMTAP rm -f *.stp endif diff --git a/qmp-commands-old.h b/qmp-commands-old.h new file mode 100644 index 0000000..3a7af18 --- /dev/null +++ b/qmp-commands-old.h @@ -0,0 +1,683 @@ + { + .name = "quit", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_quit, + }, + { + .name = "eject", + .args_type = "force:-f,device:B", + .mhandler.cmd_new = qmp_marshal_eject, + }, + { + .name = "change", + .args_type = "device:B,target:F,arg:s?", + .mhandler.cmd_new = qmp_marshal_change, + }, + { + .name = "screendump", + .args_type = "filename:F", + .mhandler.cmd_new = qmp_marshal_screendump, + }, + { + .name = "stop", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_stop, + }, + { + .name = "cont", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_cont, + }, + { + .name = "system_wakeup", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_system_wakeup, + }, + { + .name = "system_reset", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_system_reset, + }, + { + .name = "system_powerdown", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_system_powerdown, + }, + { + .name = "device_add", + .args_type = "device:O", + .params = "driver[,prop=value][,...]", + .help = "add device, like -device on the command line", + .mhandler.cmd_new = qmp_device_add, + }, + { + .name = "device_del", + .args_type = "id:s", + .mhandler.cmd_new = qmp_marshal_device_del, + }, + { + .name = "send-key", + .args_type = "keys:q,hold-time:i?", + .mhandler.cmd_new = qmp_marshal_send_key, + }, + { + .name = "cpu", + .args_type = "index:i", + .mhandler.cmd_new = qmp_marshal_cpu, + }, + { + .name = "cpu-add", + .args_type = "id:i", + .mhandler.cmd_new = qmp_marshal_cpu_add, + }, + { + .name = "memsave", + .args_type = "val:l,size:i,filename:s,cpu:i?", + .mhandler.cmd_new = qmp_marshal_memsave, + }, + { + .name = "pmemsave", + .args_type = "val:l,size:i,filename:s", + .mhandler.cmd_new = qmp_marshal_pmemsave, + }, + { + .name = "inject-nmi", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_inject_nmi, + }, + { + .name = "ringbuf-write", + .args_type = "device:s,data:s,format:s?", + .mhandler.cmd_new = qmp_marshal_ringbuf_write, + }, + { + .name = "ringbuf-read", + .args_type = "device:s,size:i,format:s?", + .mhandler.cmd_new = qmp_marshal_ringbuf_read, + }, + { + .name = "xen-save-devices-state", + .args_type = "filename:F", + .mhandler.cmd_new = qmp_marshal_xen_save_devices_state, + }, + { + .name = "xen-set-global-dirty-log", + .args_type = "enable:b", + .mhandler.cmd_new = qmp_marshal_xen_set_global_dirty_log, + }, + { + .name = "migrate", + .args_type = "detach:-d,blk:-b,inc:-i,uri:s", + .mhandler.cmd_new = qmp_marshal_migrate, + }, + { + .name = "migrate_cancel", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_migrate_cancel, + }, + { + .name = "migrate-incoming", + .args_type = "uri:s", + .mhandler.cmd_new = qmp_marshal_migrate_incoming, + }, + { + .name = "migrate-set-cache-size", + .args_type = "value:o", + .mhandler.cmd_new = qmp_marshal_migrate_set_cache_size, + }, + { + .name = "query-migrate-cache-size", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_migrate_cache_size, + }, + { + .name = "migrate_set_speed", + .args_type = "value:o", + .mhandler.cmd_new = qmp_marshal_migrate_set_speed, + }, + { + .name = "migrate_set_downtime", + .args_type = "value:T", + .mhandler.cmd_new = qmp_marshal_migrate_set_downtime, + }, + { + .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", + .mhandler.cmd_new = qmp_marshal_client_migrate_info, + }, + { + .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", + .mhandler.cmd_new = qmp_marshal_dump_guest_memory, + }, + { + .name = "query-dump-guest-memory-capability", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_dump_guest_memory_capability, + }, +#if defined TARGET_S390X + { + .name = "dump-skeys", + .args_type = "filename:F", + .mhandler.cmd_new = qmp_marshal_dump_skeys, + }, +#endif + { + .name = "netdev_add", + .args_type = "netdev:O", + .mhandler.cmd_new = qmp_marshal_netdev_add, + }, + { + .name = "netdev_del", + .args_type = "id:s", + .mhandler.cmd_new = qmp_marshal_netdev_del, + }, + { + .name = "object-add", + .args_type = "qom-type:s,id:s,props:q?", + .mhandler.cmd_new = qmp_marshal_object_add, + }, + { + .name = "object-del", + .args_type = "id:s", + .mhandler.cmd_new = qmp_marshal_object_del, + }, + { + .name = "block_resize", + .args_type = "device:s?,node-name:s?,size:o", + .mhandler.cmd_new = qmp_marshal_block_resize, + }, + { + .name = "block-stream", + .args_type = "device:B,base:s?,speed:o?,backing-file:s?,on-error:s?", + .mhandler.cmd_new = qmp_marshal_block_stream, + }, + { + .name = "block-commit", + .args_type = "device:B,base:s?,top:s?,backing-file:s?,speed:o?", + .mhandler.cmd_new = qmp_marshal_block_commit, + }, + { + .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?", + .mhandler.cmd_new = qmp_marshal_drive_backup, + }, + { + .name = "blockdev-backup", + .args_type = "sync:s,device:B,target:B,speed:i?," + "on-source-error:s?,on-target-error:s?", + .mhandler.cmd_new = qmp_marshal_blockdev_backup, + }, + { + .name = "block-job-set-speed", + .args_type = "device:B,speed:o", + .mhandler.cmd_new = qmp_marshal_block_job_set_speed, + }, + + { + .name = "block-job-cancel", + .args_type = "device:B,force:b?", + .mhandler.cmd_new = qmp_marshal_block_job_cancel, + }, + { + .name = "block-job-pause", + .args_type = "device:B", + .mhandler.cmd_new = qmp_marshal_block_job_pause, + }, + { + .name = "block-job-resume", + .args_type = "device:B", + .mhandler.cmd_new = qmp_marshal_block_job_resume, + }, + { + .name = "block-job-complete", + .args_type = "device:B", + .mhandler.cmd_new = qmp_marshal_block_job_complete, + }, + { + .name = "transaction", + .args_type = "actions:q", + .mhandler.cmd_new = qmp_marshal_transaction, + }, + { + .name = "block-dirty-bitmap-add", + .args_type = "node:B,name:s,granularity:i?", + .mhandler.cmd_new = qmp_marshal_block_dirty_bitmap_add, + }, + { + .name = "block-dirty-bitmap-remove", + .args_type = "node:B,name:s", + .mhandler.cmd_new = qmp_marshal_block_dirty_bitmap_remove, + }, + { + .name = "block-dirty-bitmap-clear", + .args_type = "node:B,name:s", + .mhandler.cmd_new = qmp_marshal_block_dirty_bitmap_clear, + }, + { + .name = "blockdev-snapshot-sync", + .args_type = "device:s?,node-name:s?,snapshot-file:s,snapshot-node-name:s?,format:s?,mode:s?", + .mhandler.cmd_new = qmp_marshal_blockdev_snapshot_sync, + }, + { + .name = "blockdev-snapshot-internal-sync", + .args_type = "device:B,name:s", + .mhandler.cmd_new = qmp_marshal_blockdev_snapshot_internal_sync, + }, + { + .name = "blockdev-snapshot-delete-internal-sync", + .args_type = "device:B,id:s?,name:s?", + .mhandler.cmd_new = + qmp_marshal_blockdev_snapshot_delete_internal_sync, + }, + { + .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?", + .mhandler.cmd_new = qmp_marshal_drive_mirror, + }, + { + .name = "change-backing-file", + .args_type = "device:s,image-node-name:s,backing-file:s", + .mhandler.cmd_new = qmp_marshal_change_backing_file, + }, + { + .name = "balloon", + .args_type = "value:M", + .mhandler.cmd_new = qmp_marshal_balloon, + }, + { + .name = "set_link", + .args_type = "name:s,up:b", + .mhandler.cmd_new = qmp_marshal_set_link, + }, + { + .name = "getfd", + .args_type = "fdname:s", + .params = "getfd name", + .help = "receive a file descriptor via SCM rights and assign it a name", + .mhandler.cmd_new = qmp_marshal_getfd, + }, + { + .name = "closefd", + .args_type = "fdname:s", + .params = "closefd name", + .help = "close a file descriptor previously passed via SCM rights", + .mhandler.cmd_new = qmp_marshal_closefd, + }, + { + .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", + .mhandler.cmd_new = qmp_marshal_add_fd, + }, + { + .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", + .mhandler.cmd_new = qmp_marshal_remove_fd, + }, + { + .name = "query-fdsets", + .args_type = "", + .help = "Return information describing all fd sets", + .mhandler.cmd_new = qmp_marshal_query_fdsets, + }, + { + .name = "block_passwd", + .args_type = "device:s?,node-name:s?,password:s", + .mhandler.cmd_new = qmp_marshal_block_passwd, + }, + { + .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?", + .mhandler.cmd_new = qmp_marshal_block_set_io_throttle, + }, + { + .name = "set_password", + .args_type = "protocol:s,password:s,connected:s?", + .mhandler.cmd_new = qmp_marshal_set_password, + }, + { + .name = "expire_password", + .args_type = "protocol:s,time:s", + .mhandler.cmd_new = qmp_marshal_expire_password, + }, + { + .name = "add_client", + .args_type = "protocol:s,fdname:s,skipauth:b?,tls:b?", + .mhandler.cmd_new = qmp_marshal_add_client, + }, + { + .name = "qmp_capabilities", + .args_type = "", + .help = "enable QMP capabilities", + .mhandler.cmd_new = qmp_marshal_qmp_capabilities, + }, + { + .name = "human-monitor-command", + .args_type = "command-line:s,cpu-index:i?", + .mhandler.cmd_new = qmp_marshal_human_monitor_command, + }, + { + .name = "query-version", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_version, + }, + { + .name = "query-commands", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_commands, + }, + { + .name = "query-events", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_events, + }, + { + .name = "query-qmp-schema", + .args_type = "", + .mhandler.cmd_new = qmp_query_qmp_schema, + }, + { + .name = "query-chardev", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_chardev, + }, + { + .name = "query-chardev-backends", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_chardev_backends, + }, + { + .name = "query-block", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_block, + }, + { + .name = "query-blockstats", + .args_type = "query-nodes:b?", + .mhandler.cmd_new = qmp_marshal_query_blockstats, + }, + { + .name = "query-cpus", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_cpus, + }, + { + .name = "query-iothreads", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_iothreads, + }, + { + .name = "query-pci", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_pci, + }, + { + .name = "query-kvm", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_kvm, + }, + { + .name = "query-status", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_status, + }, + { + .name = "query-mice", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_mice, + }, + { + .name = "query-vnc", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_vnc, + }, + { + .name = "query-vnc-servers", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_vnc_servers, + }, +#if defined(CONFIG_SPICE) + { + .name = "query-spice", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_spice, + }, +#endif + { + .name = "query-name", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_name, + }, + { + .name = "query-uuid", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_uuid, + }, + { + .name = "query-command-line-options", + .args_type = "option:s?", + .mhandler.cmd_new = qmp_marshal_query_command_line_options, + }, + { + .name = "query-migrate", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_migrate, + }, + { + .name = "migrate-set-capabilities", + .args_type = "capabilities:q", + .params = "capability:s,state:b", + .mhandler.cmd_new = qmp_marshal_migrate_set_capabilities, + }, + { + .name = "query-migrate-capabilities", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_migrate_capabilities, + }, + { + .name = "migrate-set-parameters", + .args_type = + "compress-level:i?,compress-threads:i?,decompress-threads:i?", + .mhandler.cmd_new = qmp_marshal_migrate_set_parameters, + }, + { + .name = "query-migrate-parameters", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_migrate_parameters, + }, + { + .name = "query-balloon", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_balloon, + }, + + { + .name = "query-block-jobs", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_block_jobs, + }, + + { + .name = "qom-list", + .args_type = "path:s", + .mhandler.cmd_new = qmp_marshal_qom_list, + }, + + { + .name = "qom-set", + .args_type = "path:s,property:s,value:q", + .mhandler.cmd_new = qmp_marshal_qom_set, + }, + + { + .name = "qom-get", + .args_type = "path:s,property:s", + .mhandler.cmd_new = qmp_marshal_qom_get, + }, + + { + .name = "nbd-server-start", + .args_type = "addr:q", + .mhandler.cmd_new = qmp_marshal_nbd_server_start, + }, + { + .name = "nbd-server-add", + .args_type = "device:B,writable:b?", + .mhandler.cmd_new = qmp_marshal_nbd_server_add, + }, + { + .name = "nbd-server-stop", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_nbd_server_stop, + }, + + { + .name = "change-vnc-password", + .args_type = "password:s", + .mhandler.cmd_new = qmp_marshal_change_vnc_password, + }, + { + .name = "qom-list-types", + .args_type = "implements:s?,abstract:b?", + .mhandler.cmd_new = qmp_marshal_qom_list_types, + }, + + { + .name = "device-list-properties", + .args_type = "typename:s", + .mhandler.cmd_new = qmp_marshal_device_list_properties, + }, + + { + .name = "query-machines", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_machines, + }, + + { + .name = "query-cpu-definitions", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_cpu_definitions, + }, + + { + .name = "query-target", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_target, + }, + + { + .name = "query-tpm", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_tpm, + }, + { + .name = "query-tpm-models", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_tpm_models, + }, + { + .name = "query-tpm-types", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_tpm_types, + }, + { + .name = "chardev-add", + .args_type = "id:s,backend:q", + .mhandler.cmd_new = qmp_marshal_chardev_add, + }, + { + .name = "chardev-remove", + .args_type = "id:s", + .mhandler.cmd_new = qmp_marshal_chardev_remove, + }, + { + .name = "query-rx-filter", + .args_type = "name:s?", + .mhandler.cmd_new = qmp_marshal_query_rx_filter, + }, + { + .name = "blockdev-add", + .args_type = "options:q", + .mhandler.cmd_new = qmp_marshal_blockdev_add, + }, + { + .name = "query-named-block-nodes", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_named_block_nodes, + }, + { + .name = "query-memdev", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_memdev, + }, + { + .name = "query-memory-devices", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_memory_devices, + }, + { + .name = "query-acpi-ospm-status", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_query_acpi_ospm_status, + }, +#if defined TARGET_I386 + { + .name = "rtc-reset-reinjection", + .args_type = "", + .mhandler.cmd_new = qmp_marshal_rtc_reset_reinjection, + }, +#endif + { + .name = "trace-event-get-state", + .args_type = "name:s", + .mhandler.cmd_new = qmp_marshal_trace_event_get_state, + }, + { + .name = "trace-event-set-state", + .args_type = "name:s,enable:b,ignore-unavailable:b?", + .mhandler.cmd_new = qmp_marshal_trace_event_set_state, + }, + { + .name = "x-input-send-event", + .args_type = "console:i?,events:q", + .mhandler.cmd_new = qmp_marshal_x_input_send_event, + }, + { + .name = "block-set-write-threshold", + .args_type = "node-name:s,write-threshold:l", + .mhandler.cmd_new = qmp_marshal_block_set_write_threshold, + }, + { + .name = "query-rocker", + .args_type = "name:s", + .mhandler.cmd_new = qmp_marshal_query_rocker, + }, + { + .name = "query-rocker-ports", + .args_type = "name:s", + .mhandler.cmd_new = qmp_marshal_query_rocker_ports, + }, + { + .name = "query-rocker-of-dpa-flows", + .args_type = "name:s,tbl-id:i?", + .mhandler.cmd_new = qmp_marshal_query_rocker_of_dpa_flows, + }, + { + .name = "query-rocker-of-dpa-groups", + .args_type = "name:s,type:i?", + .mhandler.cmd_new = qmp_marshal_query_rocker_of_dpa_groups, + }, diff --git a/qmp-commands.hx b/qmp-commands.hx deleted file mode 100644 index 3a7af18..0000000 --- a/qmp-commands.hx +++ /dev/null @@ -1,683 +0,0 @@ - { - .name = "quit", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_quit, - }, - { - .name = "eject", - .args_type = "force:-f,device:B", - .mhandler.cmd_new = qmp_marshal_eject, - }, - { - .name = "change", - .args_type = "device:B,target:F,arg:s?", - .mhandler.cmd_new = qmp_marshal_change, - }, - { - .name = "screendump", - .args_type = "filename:F", - .mhandler.cmd_new = qmp_marshal_screendump, - }, - { - .name = "stop", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_stop, - }, - { - .name = "cont", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_cont, - }, - { - .name = "system_wakeup", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_system_wakeup, - }, - { - .name = "system_reset", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_system_reset, - }, - { - .name = "system_powerdown", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_system_powerdown, - }, - { - .name = "device_add", - .args_type = "device:O", - .params = "driver[,prop=value][,...]", - .help = "add device, like -device on the command line", - .mhandler.cmd_new = qmp_device_add, - }, - { - .name = "device_del", - .args_type = "id:s", - .mhandler.cmd_new = qmp_marshal_device_del, - }, - { - .name = "send-key", - .args_type = "keys:q,hold-time:i?", - .mhandler.cmd_new = qmp_marshal_send_key, - }, - { - .name = "cpu", - .args_type = "index:i", - .mhandler.cmd_new = qmp_marshal_cpu, - }, - { - .name = "cpu-add", - .args_type = "id:i", - .mhandler.cmd_new = qmp_marshal_cpu_add, - }, - { - .name = "memsave", - .args_type = "val:l,size:i,filename:s,cpu:i?", - .mhandler.cmd_new = qmp_marshal_memsave, - }, - { - .name = "pmemsave", - .args_type = "val:l,size:i,filename:s", - .mhandler.cmd_new = qmp_marshal_pmemsave, - }, - { - .name = "inject-nmi", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_inject_nmi, - }, - { - .name = "ringbuf-write", - .args_type = "device:s,data:s,format:s?", - .mhandler.cmd_new = qmp_marshal_ringbuf_write, - }, - { - .name = "ringbuf-read", - .args_type = "device:s,size:i,format:s?", - .mhandler.cmd_new = qmp_marshal_ringbuf_read, - }, - { - .name = "xen-save-devices-state", - .args_type = "filename:F", - .mhandler.cmd_new = qmp_marshal_xen_save_devices_state, - }, - { - .name = "xen-set-global-dirty-log", - .args_type = "enable:b", - .mhandler.cmd_new = qmp_marshal_xen_set_global_dirty_log, - }, - { - .name = "migrate", - .args_type = "detach:-d,blk:-b,inc:-i,uri:s", - .mhandler.cmd_new = qmp_marshal_migrate, - }, - { - .name = "migrate_cancel", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_migrate_cancel, - }, - { - .name = "migrate-incoming", - .args_type = "uri:s", - .mhandler.cmd_new = qmp_marshal_migrate_incoming, - }, - { - .name = "migrate-set-cache-size", - .args_type = "value:o", - .mhandler.cmd_new = qmp_marshal_migrate_set_cache_size, - }, - { - .name = "query-migrate-cache-size", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_migrate_cache_size, - }, - { - .name = "migrate_set_speed", - .args_type = "value:o", - .mhandler.cmd_new = qmp_marshal_migrate_set_speed, - }, - { - .name = "migrate_set_downtime", - .args_type = "value:T", - .mhandler.cmd_new = qmp_marshal_migrate_set_downtime, - }, - { - .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", - .mhandler.cmd_new = qmp_marshal_client_migrate_info, - }, - { - .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", - .mhandler.cmd_new = qmp_marshal_dump_guest_memory, - }, - { - .name = "query-dump-guest-memory-capability", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_dump_guest_memory_capability, - }, -#if defined TARGET_S390X - { - .name = "dump-skeys", - .args_type = "filename:F", - .mhandler.cmd_new = qmp_marshal_dump_skeys, - }, -#endif - { - .name = "netdev_add", - .args_type = "netdev:O", - .mhandler.cmd_new = qmp_marshal_netdev_add, - }, - { - .name = "netdev_del", - .args_type = "id:s", - .mhandler.cmd_new = qmp_marshal_netdev_del, - }, - { - .name = "object-add", - .args_type = "qom-type:s,id:s,props:q?", - .mhandler.cmd_new = qmp_marshal_object_add, - }, - { - .name = "object-del", - .args_type = "id:s", - .mhandler.cmd_new = qmp_marshal_object_del, - }, - { - .name = "block_resize", - .args_type = "device:s?,node-name:s?,size:o", - .mhandler.cmd_new = qmp_marshal_block_resize, - }, - { - .name = "block-stream", - .args_type = "device:B,base:s?,speed:o?,backing-file:s?,on-error:s?", - .mhandler.cmd_new = qmp_marshal_block_stream, - }, - { - .name = "block-commit", - .args_type = "device:B,base:s?,top:s?,backing-file:s?,speed:o?", - .mhandler.cmd_new = qmp_marshal_block_commit, - }, - { - .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?", - .mhandler.cmd_new = qmp_marshal_drive_backup, - }, - { - .name = "blockdev-backup", - .args_type = "sync:s,device:B,target:B,speed:i?," - "on-source-error:s?,on-target-error:s?", - .mhandler.cmd_new = qmp_marshal_blockdev_backup, - }, - { - .name = "block-job-set-speed", - .args_type = "device:B,speed:o", - .mhandler.cmd_new = qmp_marshal_block_job_set_speed, - }, - - { - .name = "block-job-cancel", - .args_type = "device:B,force:b?", - .mhandler.cmd_new = qmp_marshal_block_job_cancel, - }, - { - .name = "block-job-pause", - .args_type = "device:B", - .mhandler.cmd_new = qmp_marshal_block_job_pause, - }, - { - .name = "block-job-resume", - .args_type = "device:B", - .mhandler.cmd_new = qmp_marshal_block_job_resume, - }, - { - .name = "block-job-complete", - .args_type = "device:B", - .mhandler.cmd_new = qmp_marshal_block_job_complete, - }, - { - .name = "transaction", - .args_type = "actions:q", - .mhandler.cmd_new = qmp_marshal_transaction, - }, - { - .name = "block-dirty-bitmap-add", - .args_type = "node:B,name:s,granularity:i?", - .mhandler.cmd_new = qmp_marshal_block_dirty_bitmap_add, - }, - { - .name = "block-dirty-bitmap-remove", - .args_type = "node:B,name:s", - .mhandler.cmd_new = qmp_marshal_block_dirty_bitmap_remove, - }, - { - .name = "block-dirty-bitmap-clear", - .args_type = "node:B,name:s", - .mhandler.cmd_new = qmp_marshal_block_dirty_bitmap_clear, - }, - { - .name = "blockdev-snapshot-sync", - .args_type = "device:s?,node-name:s?,snapshot-file:s,snapshot-node-name:s?,format:s?,mode:s?", - .mhandler.cmd_new = qmp_marshal_blockdev_snapshot_sync, - }, - { - .name = "blockdev-snapshot-internal-sync", - .args_type = "device:B,name:s", - .mhandler.cmd_new = qmp_marshal_blockdev_snapshot_internal_sync, - }, - { - .name = "blockdev-snapshot-delete-internal-sync", - .args_type = "device:B,id:s?,name:s?", - .mhandler.cmd_new = - qmp_marshal_blockdev_snapshot_delete_internal_sync, - }, - { - .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?", - .mhandler.cmd_new = qmp_marshal_drive_mirror, - }, - { - .name = "change-backing-file", - .args_type = "device:s,image-node-name:s,backing-file:s", - .mhandler.cmd_new = qmp_marshal_change_backing_file, - }, - { - .name = "balloon", - .args_type = "value:M", - .mhandler.cmd_new = qmp_marshal_balloon, - }, - { - .name = "set_link", - .args_type = "name:s,up:b", - .mhandler.cmd_new = qmp_marshal_set_link, - }, - { - .name = "getfd", - .args_type = "fdname:s", - .params = "getfd name", - .help = "receive a file descriptor via SCM rights and assign it a name", - .mhandler.cmd_new = qmp_marshal_getfd, - }, - { - .name = "closefd", - .args_type = "fdname:s", - .params = "closefd name", - .help = "close a file descriptor previously passed via SCM rights", - .mhandler.cmd_new = qmp_marshal_closefd, - }, - { - .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", - .mhandler.cmd_new = qmp_marshal_add_fd, - }, - { - .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", - .mhandler.cmd_new = qmp_marshal_remove_fd, - }, - { - .name = "query-fdsets", - .args_type = "", - .help = "Return information describing all fd sets", - .mhandler.cmd_new = qmp_marshal_query_fdsets, - }, - { - .name = "block_passwd", - .args_type = "device:s?,node-name:s?,password:s", - .mhandler.cmd_new = qmp_marshal_block_passwd, - }, - { - .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?", - .mhandler.cmd_new = qmp_marshal_block_set_io_throttle, - }, - { - .name = "set_password", - .args_type = "protocol:s,password:s,connected:s?", - .mhandler.cmd_new = qmp_marshal_set_password, - }, - { - .name = "expire_password", - .args_type = "protocol:s,time:s", - .mhandler.cmd_new = qmp_marshal_expire_password, - }, - { - .name = "add_client", - .args_type = "protocol:s,fdname:s,skipauth:b?,tls:b?", - .mhandler.cmd_new = qmp_marshal_add_client, - }, - { - .name = "qmp_capabilities", - .args_type = "", - .help = "enable QMP capabilities", - .mhandler.cmd_new = qmp_marshal_qmp_capabilities, - }, - { - .name = "human-monitor-command", - .args_type = "command-line:s,cpu-index:i?", - .mhandler.cmd_new = qmp_marshal_human_monitor_command, - }, - { - .name = "query-version", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_version, - }, - { - .name = "query-commands", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_commands, - }, - { - .name = "query-events", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_events, - }, - { - .name = "query-qmp-schema", - .args_type = "", - .mhandler.cmd_new = qmp_query_qmp_schema, - }, - { - .name = "query-chardev", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_chardev, - }, - { - .name = "query-chardev-backends", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_chardev_backends, - }, - { - .name = "query-block", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_block, - }, - { - .name = "query-blockstats", - .args_type = "query-nodes:b?", - .mhandler.cmd_new = qmp_marshal_query_blockstats, - }, - { - .name = "query-cpus", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_cpus, - }, - { - .name = "query-iothreads", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_iothreads, - }, - { - .name = "query-pci", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_pci, - }, - { - .name = "query-kvm", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_kvm, - }, - { - .name = "query-status", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_status, - }, - { - .name = "query-mice", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_mice, - }, - { - .name = "query-vnc", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_vnc, - }, - { - .name = "query-vnc-servers", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_vnc_servers, - }, -#if defined(CONFIG_SPICE) - { - .name = "query-spice", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_spice, - }, -#endif - { - .name = "query-name", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_name, - }, - { - .name = "query-uuid", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_uuid, - }, - { - .name = "query-command-line-options", - .args_type = "option:s?", - .mhandler.cmd_new = qmp_marshal_query_command_line_options, - }, - { - .name = "query-migrate", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_migrate, - }, - { - .name = "migrate-set-capabilities", - .args_type = "capabilities:q", - .params = "capability:s,state:b", - .mhandler.cmd_new = qmp_marshal_migrate_set_capabilities, - }, - { - .name = "query-migrate-capabilities", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_migrate_capabilities, - }, - { - .name = "migrate-set-parameters", - .args_type = - "compress-level:i?,compress-threads:i?,decompress-threads:i?", - .mhandler.cmd_new = qmp_marshal_migrate_set_parameters, - }, - { - .name = "query-migrate-parameters", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_migrate_parameters, - }, - { - .name = "query-balloon", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_balloon, - }, - - { - .name = "query-block-jobs", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_block_jobs, - }, - - { - .name = "qom-list", - .args_type = "path:s", - .mhandler.cmd_new = qmp_marshal_qom_list, - }, - - { - .name = "qom-set", - .args_type = "path:s,property:s,value:q", - .mhandler.cmd_new = qmp_marshal_qom_set, - }, - - { - .name = "qom-get", - .args_type = "path:s,property:s", - .mhandler.cmd_new = qmp_marshal_qom_get, - }, - - { - .name = "nbd-server-start", - .args_type = "addr:q", - .mhandler.cmd_new = qmp_marshal_nbd_server_start, - }, - { - .name = "nbd-server-add", - .args_type = "device:B,writable:b?", - .mhandler.cmd_new = qmp_marshal_nbd_server_add, - }, - { - .name = "nbd-server-stop", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_nbd_server_stop, - }, - - { - .name = "change-vnc-password", - .args_type = "password:s", - .mhandler.cmd_new = qmp_marshal_change_vnc_password, - }, - { - .name = "qom-list-types", - .args_type = "implements:s?,abstract:b?", - .mhandler.cmd_new = qmp_marshal_qom_list_types, - }, - - { - .name = "device-list-properties", - .args_type = "typename:s", - .mhandler.cmd_new = qmp_marshal_device_list_properties, - }, - - { - .name = "query-machines", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_machines, - }, - - { - .name = "query-cpu-definitions", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_cpu_definitions, - }, - - { - .name = "query-target", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_target, - }, - - { - .name = "query-tpm", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_tpm, - }, - { - .name = "query-tpm-models", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_tpm_models, - }, - { - .name = "query-tpm-types", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_tpm_types, - }, - { - .name = "chardev-add", - .args_type = "id:s,backend:q", - .mhandler.cmd_new = qmp_marshal_chardev_add, - }, - { - .name = "chardev-remove", - .args_type = "id:s", - .mhandler.cmd_new = qmp_marshal_chardev_remove, - }, - { - .name = "query-rx-filter", - .args_type = "name:s?", - .mhandler.cmd_new = qmp_marshal_query_rx_filter, - }, - { - .name = "blockdev-add", - .args_type = "options:q", - .mhandler.cmd_new = qmp_marshal_blockdev_add, - }, - { - .name = "query-named-block-nodes", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_named_block_nodes, - }, - { - .name = "query-memdev", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_memdev, - }, - { - .name = "query-memory-devices", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_memory_devices, - }, - { - .name = "query-acpi-ospm-status", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_query_acpi_ospm_status, - }, -#if defined TARGET_I386 - { - .name = "rtc-reset-reinjection", - .args_type = "", - .mhandler.cmd_new = qmp_marshal_rtc_reset_reinjection, - }, -#endif - { - .name = "trace-event-get-state", - .args_type = "name:s", - .mhandler.cmd_new = qmp_marshal_trace_event_get_state, - }, - { - .name = "trace-event-set-state", - .args_type = "name:s,enable:b,ignore-unavailable:b?", - .mhandler.cmd_new = qmp_marshal_trace_event_set_state, - }, - { - .name = "x-input-send-event", - .args_type = "console:i?,events:q", - .mhandler.cmd_new = qmp_marshal_x_input_send_event, - }, - { - .name = "block-set-write-threshold", - .args_type = "node-name:s,write-threshold:l", - .mhandler.cmd_new = qmp_marshal_block_set_write_threshold, - }, - { - .name = "query-rocker", - .args_type = "name:s", - .mhandler.cmd_new = qmp_marshal_query_rocker, - }, - { - .name = "query-rocker-ports", - .args_type = "name:s", - .mhandler.cmd_new = qmp_marshal_query_rocker_ports, - }, - { - .name = "query-rocker-of-dpa-flows", - .args_type = "name:s,tbl-id:i?", - .mhandler.cmd_new = qmp_marshal_query_rocker_of_dpa_flows, - }, - { - .name = "query-rocker-of-dpa-groups", - .args_type = "name:s,type:i?", - .mhandler.cmd_new = qmp_marshal_query_rocker_of_dpa_groups, - },