[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
>
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v6 24/39] blockdev: Do not create BDS for empty drive, (continued)
- [Qemu-devel] [PATCH v6 23/39] block: Prepare for NULL BDS, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 25/39] blockdev: Pull out blockdev option extraction, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 26/39] blockdev: Allow more options for BB-less BDS tree, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 32/39] blockdev: Implement eject with basic operations, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 30/39] blockdev: Add blockdev-remove-medium, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 31/39] blockdev: Add blockdev-insert-medium, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 37/39] blockdev: read-only-mode for blockdev-change-medium, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 38/39] hmp: Add read-only-mode option to change command, Max Reitz, 2015/10/12
- [Qemu-devel] [PATCH v6 39/39] iotests: Add test for change-related QMP commands, Max Reitz, 2015/10/12
- Re: [Qemu-devel] [PATCH v6 00/39] blockdev: BlockBackend and media, Kevin Wolf, 2015/10/13
- [Qemu-devel] [PATCH v6 02/39] block: Set BDRV_O_INCOMING in bdrv_fill_options(), Max Reitz, 2015/10/15
- [Qemu-devel] [PATCH v6 06/39] block: Add blk_is_available(), Max Reitz, 2015/10/15
- [Qemu-devel] [PATCH v6 14/39] block: Remove wr_highest_sector from BlockAcctStats, Max Reitz, 2015/10/15