qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 08/24] raw: Probe required direct I/O alignme


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 08/24] raw: Probe required direct I/O alignment
Date: Sat, 11 Jan 2014 23:26:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 13.12.2013 14:22, Kevin Wolf wrote:
From: Paolo Bonzini <address@hidden>

Add a bs->request_alignment field that contains the required
offset/length alignment for I/O requests and fill it in the raw block
drivers. Use ioctls if possible, else see what alignment it takes for
O_DIRECT to succeed.

While at it, also expose the memory alignment requirements, which may be
(and in practice are) different from the disk alignment requirements.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
  block.c                   |   3 ++
  block/raw-posix.c         | 102 ++++++++++++++++++++++++++++++++++++++--------
  block/raw-win32.c         |  41 +++++++++++++++++++
  include/block/block_int.h |   3 ++
  4 files changed, 132 insertions(+), 17 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

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