qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 26/39] blockdev: Allow more options for BB-le


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v6 26/39] blockdev: Allow more options for BB-less BDS tree
Date: Sat, 17 Oct 2015 18:33:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 15.10.2015 13:29, Kevin Wolf wrote:
> Am 12.10.2015 um 22:00 hat Max Reitz geschrieben:
>> Most of the options which blockdev_init() parses for both the
>> BlockBackend and the root BDS are valid for just the root BDS as well
>> (e.g. read-only). This patch allows specifying these options even if not
>> creating a BlockBackend.
>>
>> Signed-off-by: Max Reitz <address@hidden>
>> ---
>>  blockdev.c | 160 
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
>>  1 file changed, 154 insertions(+), 6 deletions(-)
> 
>> +
>> +    /* disk I/O throttling */
>> +    if (throttle_enabled(&cfg)) {
>> +        if (!throttling_group) {
>> +            throttling_group = bdrv_get_node_name(bs);
>> +        }
>> +        bdrv_io_limits_enable(bs, throttling_group);
>> +        bdrv_set_io_limits(bs, &cfg);
>> +    }
> 
> A while ago we discussed that we want to move throttling to the BB level
> eventually. In that case, it might be wiser not to expose it for non-BB
> nodes now.

Sounds good. Will do.

Max

> Otherwise the patch looks good to me.
> 
> Kevin
> 


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]