Diff for /qemu/qmp-commands.hx between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/24 18:33:58 version 1.1.1.2, 2018/04/24 18:56:14
Line 430  Example: Line 430  Example:
 EQMP  EQMP
   
     {      {
           .name       = "inject-nmi",
           .args_type  = "",
           .params     = "",
           .help       = "",
           .user_print = monitor_user_noop,
           .mhandler.cmd_new = do_inject_nmi,
       },
   
   SQMP
   inject-nmi
   ----------
   
   Inject an NMI on guest's CPUs.
   
   Arguments: None.
   
   Example:
   
   -> { "execute": "inject-nmi" }
   <- { "return": {} }
   
   Note: inject-nmi is only supported for x86 guest currently, it will
         returns "Unsupported" error for non-x86 guest.
   
   EQMP
   
       {
         .name       = "migrate",          .name       = "migrate",
         .args_type  = "detach:-d,blk:-b,inc:-i,uri:s",          .args_type  = "detach:-d,blk:-b,inc:-i,uri:s",
         .params     = "[-d] [-b] [-i] uri",          .params     = "[-d] [-b] [-i] uri",
Line 503  EQMP Line 530  EQMP
     },      },
   
 SQMP  SQMP
 client_migrate_info  migrate_set_speed
 ------------------  -----------------
   
 Set the spice/vnc connection info for the migration target.  The spice/vnc  Set maximum speed for migrations.
 server will ask the spice/vnc client to automatically reconnect using the  
 new parameters (if specified) once the vm migration finished successfully.  
   
 Arguments:  Arguments:
   
 - "protocol":     protocol: "spice" or "vnc" (json-string)  - "value": maximum speed, in bytes per second (json-int)
 - "hostname":     migration target hostname (json-string)  
 - "port":         spice/vnc tcp port for plaintext channels (json-int, optional)  
 - "tls-port":     spice tcp port for tls-secured channels (json-int, optional)  
 - "cert-subject": server certificate subject (json-string, optional)  
   
 Example:  Example:
   
 -> { "execute": "client_migrate_info",  -> { "execute": "migrate_set_speed", "arguments": { "value": 1024 } }
      "arguments": { "protocol": "spice",  
                     "hostname": "virt42.lab.kraxel.org",  
                     "port": 1234 } }  
 <- { "return": {} }  <- { "return": {} }
   
 EQMP  EQMP
   
     {      {
         .name       = "client_migrate_info",          .name       = "migrate_set_downtime",
         .args_type  = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",          .args_type  = "value:T",
         .params     = "protocol hostname port tls-port cert-subject",          .params     = "value",
         .help       = "send migration info to spice/vnc client",          .help       = "set maximum tolerated downtime (in seconds) for migrations",
         .user_print = monitor_user_noop,          .user_print = monitor_user_noop,
         .mhandler.cmd_new = client_migrate_info,          .mhandler.cmd_new = do_migrate_set_downtime,
     },      },
   
 SQMP  SQMP
 migrate_set_speed  migrate_set_downtime
 -----------------  --------------------
   
 Set maximum speed for migrations.  Set maximum tolerated downtime (in seconds) for migrations.
   
 Arguments:  Arguments:
   
 - "value": maximum speed, in bytes per second (json-int)  - "value": maximum downtime (json-number)
   
 Example:  Example:
   
 -> { "execute": "migrate_set_speed", "arguments": { "value": 1024 } }  -> { "execute": "migrate_set_downtime", "arguments": { "value": 0.1 } }
 <- { "return": {} }  <- { "return": {} }
   
 EQMP  EQMP
   
     {      {
         .name       = "migrate_set_downtime",          .name       = "client_migrate_info",
         .args_type  = "value:T",          .args_type  = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
         .params     = "value",          .params     = "protocol hostname port tls-port cert-subject",
         .help       = "set maximum tolerated downtime (in seconds) for migrations",          .help       = "send migration info to spice/vnc client",
         .user_print = monitor_user_noop,          .user_print = monitor_user_noop,
         .mhandler.cmd_new = do_migrate_set_downtime,          .mhandler.cmd_new = client_migrate_info,
     },      },
   
 SQMP  SQMP
 migrate_set_downtime  client_migrate_info
 --------------------  ------------------
   
 Set maximum tolerated downtime (in seconds) for migrations.  Set the spice/vnc connection info for the migration target.  The spice/vnc
   server will ask the spice/vnc client to automatically reconnect using the
   new parameters (if specified) once the vm migration finished successfully.
   
 Arguments:  Arguments:
   
 - "value": maximum downtime (json-number)  - "protocol":     protocol: "spice" or "vnc" (json-string)
   - "hostname":     migration target hostname (json-string)
   - "port":         spice/vnc tcp port for plaintext channels (json-int, optional)
   - "tls-port":     spice tcp port for tls-secured channels (json-int, optional)
   - "cert-subject": server certificate subject (json-string, optional)
   
 Example:  Example:
   
 -> { "execute": "migrate_set_downtime", "arguments": { "value": 0.1 } }  -> { "execute": "client_migrate_info",
        "arguments": { "protocol": "spice",
                       "hostname": "virt42.lab.kraxel.org",
                       "port": 1234 } }
 <- { "return": {} }  <- { "return": {} }
   
 EQMP  EQMP
Line 667  Example: Line 694  Example:
 EQMP  EQMP
   
     {      {
           .name       = "blockdev-snapshot-sync",
           .args_type  = "device:B,snapshot-file:s?,format:s?",
           .params     = "device [new-image-file] [format]",
           .user_print = monitor_user_noop,
           .mhandler.cmd_new = do_snapshot_blkdev,
       },
   
   SQMP
   blockdev-snapshot-sync
   ----------------------
   
   Synchronous snapshot of a block device. snapshot-file specifies the
   target of the new image. If the file exists, or if it is a device, the
   snapshot will be created in the existing file/device. If does not
   exist, a new file will be created. format specifies the format of the
   snapshot image, default is qcow2.
   
   Arguments:
   
   - "device": device name to snapshot (json-string)
   - "snapshot-file": name of new image file (json-string)
   - "format": format of new image (json-string, optional)
   
   Example:
   
   -> { "execute": "blockdev-snapshot", "arguments": { "device": "ide-hd0",
                                                       "snapshot-file":
                                                       "/some/place/my-image",
                                                       "format": "qcow2" } }
   <- { "return": {} }
   
   EQMP
   
       {
         .name       = "balloon",          .name       = "balloon",
         .args_type  = "value:M",          .args_type  = "value:M",
         .params     = "target",          .params     = "target",
Line 858  Example: Line 919  Example:
 EQMP  EQMP
   
     {      {
           .name       = "add_client",
           .args_type  = "protocol:s,fdname:s,skipauth:b?",
           .params     = "protocol fdname skipauth",
           .help       = "add a graphics client",
           .user_print = monitor_user_noop,
           .mhandler.cmd_new = add_graphics_client,
       },
   
   SQMP
   add_client
   ----------
   
   Add a graphics client
   
   Arguments:
   
   - "protocol": protocol name (json-string)
   - "fdname": file descriptor name (json-string)
   
   Example:
   
   -> { "execute": "add_client", "arguments": { "protocol": "vnc",
                                                "fdname": "myclient" } }
   <- { "return": {} }
   
   EQMP
       {
         .name       = "qmp_capabilities",          .name       = "qmp_capabilities",
         .args_type  = "",          .args_type  = "",
         .params     = "",          .params     = "",
Line 1039  Each json-object contain the following: Line 1127  Each json-object contain the following:
   
 - "device": device name (json-string)  - "device": device name (json-string)
 - "type": device type (json-string)  - "type": device type (json-string)
          - Possible values: "hd", "cdrom", "floppy", "unknown"           - deprecated, retained for backward compatibility
            - Possible values: "unknown"
 - "removable": true if the device is removable, false otherwise (json-bool)  - "removable": true if the device is removable, false otherwise (json-bool)
 - "locked": true if the device is locked, false otherwise (json-bool)  - "locked": true if the device is locked, false otherwise (json-bool)
 - "inserted": only present if the device is inserted, it is a json-object  - "inserted": only present if the device is inserted, it is a json-object
Line 1070  Example: Line 1159  Example:
                "encrypted":false,                 "encrypted":false,
                "file":"disks/test.img"                 "file":"disks/test.img"
             },              },
             "type":"hd"              "type":"unknown"
          },           },
          {           {
             "device":"ide1-cd0",              "device":"ide1-cd0",
             "locked":false,              "locked":false,
             "removable":true,              "removable":true,
             "type":"cdrom"              "type":"unknown"
          },           },
          {           {
             "device":"floppy0",              "device":"floppy0",
             "locked":false,              "locked":false,
             "removable":true,              "removable":true,
             "type": "floppy"              "type":"unknown"
          },           },
          {           {
             "device":"sd0",              "device":"sd0",
             "locked":false,              "locked":false,
             "removable":true,              "removable":true,
             "type":"floppy"              "type":"unknown"
          }           }
       ]        ]
    }     }
Line 1194  Return a json-array. Each CPU is represe Line 1283  Return a json-array. Each CPU is represe
      "nip": PPC (json-int)       "nip": PPC (json-int)
      "pc" and "npc": sparc (json-int)       "pc" and "npc": sparc (json-int)
      "PC": mips (json-int)       "PC": mips (json-int)
   - "thread_id": ID of the underlying host thread (json-int)
   
 Example:  Example:
   
Line 1205  Example: Line 1295  Example:
             "current":true,              "current":true,
             "halted":false,              "halted":false,
             "pc":3227107138              "pc":3227107138
               "thread_id":3134
          },           },
          {           {
             "CPU":1,              "CPU":1,
             "current":false,              "current":false,
             "halted":true,              "halted":true,
             "pc":7108165              "pc":7108165
               "thread_id":3135
          }           }
       ]        ]
    }     }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com