• J
    qemu: Alter qemuMonitorJSONSetBlockIoThrottle command logic · ad9f1273
    John Ferlan 提交于
    Currently we build the JSON object for the "block_set_io_throttle"
    command using the knowledge that a NULL for a support*Options boolean
    would essentially ignore the rest of the arguments.
    
    This may not work properly if some capability was backported, plus it just
    looks rather ugly. So instead, build the "base" arguments and then if
    the support*Option bool capability is set, add in the arguments on the fly.
    
    Then append those arguments to the basic command and send to qemu.
    ad9f1273
qemu_monitor_json.c 214.5 KB