From 39164c136cbab57385e15297423fe85ef386c76f Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Thu, 16 Feb 2017 15:15:37 -0800 Subject: qmp/hmp: add query-vm-generation-id and 'info vm-generation-id' commands Add commands to query Virtual Machine Generation ID counter. QMP command example: { "execute": "query-vm-generation-id" } HMP command example: info vm-generation-id Signed-off-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Ben Warren Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hmp-commands-info.hx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'hmp-commands-info.hx') diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index b0f35e6829..a53f105c52 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -801,6 +801,20 @@ STEXI Show information about hotpluggable CPUs ETEXI +STEXI +@item info vm-generation-id +@findex vm-generation-id +Show Virtual Machine Generation ID +ETEXI + + { + .name = "vm-generation-id", + .args_type = "", + .params = "", + .help = "Show Virtual Machine Generation ID", + .cmd = hmp_info_vm_generation_id, + }, + STEXI @end table ETEXI -- cgit v1.2.1