On Thu, Aug 4, 2011 at 9:07 PM, Stefan Hajnoczi wrote:
> On Thu, Aug 4, 2011 at 5:34 AM, Zhi Yong Wu wrote:
>> @@ -1387,6 +1422,11 @@ void bdrv_set_io_limits(BlockDriverState *bs,
>> {
>> memset(&bs->io_limits, 0, sizeof(BlockIOLimit));
>> bs->io_limits = *io_limits;
>> + if (bdrv_io_
On Thu, Aug 4, 2011 at 5:34 AM, Zhi Yong Wu wrote:
> @@ -1387,6 +1422,11 @@ void bdrv_set_io_limits(BlockDriverState *bs,
> {
> memset(&bs->io_limits, 0, sizeof(BlockIOLimit));
> bs->io_limits = *io_limits;
> + if (bdrv_io_limits_enabled(bs)) {
> + bs->io_limits_enabled = true;
The brief intro:
This patch is created based on the code V4 for block I/O throttling. It mainly
adds a new qmp/hmp command block_set_io_throttle, and enhances query_block(qmp)
and info block(hmp) to display current I/O throttling settings.
Welcome to all kinds of comments from you.
Signed-off-b