qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] buffer alignment for block backends


From: Anthony Liguori
Subject: Re: [Qemu-devel] buffer alignment for block backends
Date: Thu, 09 Apr 2009 11:28:37 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Gerd Hoffmann wrote:
The xen block protocol can handle unaligned requests just fine.

Not completely arbitrarily aligned requests. They need to be
sector-aligned.

Agreed. Sector-alignment you have anyway, thats why I didn't wrote that explicitly.

But even sector-alignment is not guaranteed for the buffers in the bdrv_* API.

You can implement a backend that just implements aio_read/aio_write and you'll always get sector-aligned offsets, but the actual data buffers may have any alignment.

Regards,

Anthony Liguori

cheers,
  Gerd








reply via email to

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