qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/4] blocksize: support auto-sensing of blocksiz


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 2/4] blocksize: support auto-sensing of blocksizes
Date: Wed, 3 Sep 2014 16:37:57 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Jul 29, 2014 at 02:27:17PM +0200, Ekaterina Tumanova wrote:
> The block device model does not impose fixed block sizes for
> access to backing devices. This patch introduces support for
> auto lookup of the block sizes of the backing block device.
> 
> To achieve this, a new function blkconf_blocksizes is
> implemented. This function tries to get values
> from the block driver. If this does not work 512 is used,
> so the default excecution logic is not changed.
> 
> Based on 2013 patch from Einar Lueck <address@hidden>
> 
> Signed-off-by: Ekaterina Tumanova <address@hidden>
> Reviewed-by: David Hildenbrand <address@hidden>
> Acked-by: Cornelia Huck <address@hidden>
> ---
>  block.c                   | 12 ++++++++++++
>  hw/block/block.c          | 25 +++++++++++++++++++++++++
>  hw/core/qdev-properties.c |  4 +++-
>  include/block/block.h     |  1 +
>  include/block/block_int.h |  5 +++++
>  include/hw/block/block.h  |  2 ++
>  6 files changed, 48 insertions(+), 1 deletion(-)

This should be implemented as part of BlockLimits and
bdrv_refresh_limits().

Attachment: pgp69nZZ9Xhi0.pgp
Description: PGP signature


reply via email to

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