]> git.ipfire.org Git - thirdparty/qemu.git/commit
hmp: fix block_set_io_throttle
authorEric Blake <eblake@redhat.com>
Fri, 20 Jan 2017 23:03:59 +0000 (17:03 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:41 +0000 (12:10 -0500)
commit5e4641777c3cb06206127419ce7617aeff2327f4
treeec7e0dd028492fcfe179c3fa146557cc3f2defb0
parentd5506b31281ce3e89b76aa64ec9295db0691babc
hmp: fix block_set_io_throttle

Commit 7a9877a made the 'device' parameter to BlockIOThrottle
optional, favoring 'id' instead.  But it forgot to update the
HMP usage to set has_device, which makes all attempts to change
throttling via HMP fail with "Need exactly one of 'device' and 'id'"

CC: qemu-stable@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170120230359.4244-1-eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit 3f35c3b166c18043596768448e5d91b5d52f8353)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hmp.c