qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/5] use qemu_blockalign consistently


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 1/5] use qemu_blockalign consistently
Date: Mon, 13 Sep 2010 20:02:28 +0100

On Sun, Sep 12, 2010 at 10:42 PM, Christoph Hellwig <address@hidden> wrote:
> Use qemu_blockalign for all allocations in the block layer.  This allows
> increasing the required alignment, which is need to support O_DIRECT on
> devices with large block sizes.
>
> Signed-off-by: Christoph Hellwig <address@hidden>

I noticed that the backing file may have different alignment
requirements than the image file but qemu_blockalign() currently only
takes into account the image file's requirements.  Not necessarily
something for this patch, but since you're in the area I wanted to
mention it.

It seems safe to take the max alignment (they should both be powers of
two I think) of the image and backing files.

Stefan



reply via email to

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