Re: [Qemu-devel] [RFC PATCH 0/3] block: add support for 4k logical blocks

2011-11-27 Thread Mark Wu
Ahh, I got it! Thanks. 2011/11/25 Paolo Bonzini > On 11/25/2011 08:26 AM, Mark Wu wrote: > >> 1. This patch aims to add 4k logical support for qemu running on a host >> with 4k logical block size, right? >> > > No, it adds support for 512b logical block sizes running on a host with 4k > logical

Re: [Qemu-devel] [RFC PATCH 0/3] block: add support for 4k logical blocks

2011-11-25 Thread Christoph Hellwig
On Fri, Nov 25, 2011 at 09:27:43AM +0100, Paolo Bonzini wrote: > No, it adds support for 512b logical block sizes running on a host with 4k > logical block size and cache=none. This is suboptimal as it requires > bounce buffers, but it can happen with migration and until libvirt provides > a kn

Re: [Qemu-devel] [RFC PATCH 0/3] block: add support for 4k logical blocks

2011-11-25 Thread Paolo Bonzini
On 11/25/2011 08:26 AM, Mark Wu wrote: 1. This patch aims to add 4k logical support for qemu running on a host with 4k logical block size, right? No, it adds support for 512b logical block sizes running on a host with 4k logical block size and cache=none. This is suboptimal as it requires bo

Re: [Qemu-devel] [RFC PATCH 0/3] block: add support for 4k logical blocks

2011-11-24 Thread Mark Wu
I don't understand this series very well. So could you help me answer the following questions? 1. This patch aims to add 4k logical support for qemu running on a host with 4k logical block size, right? For guest, we can use logical_block_size=4096 to achieve that even on a host with the logical_bl

[Qemu-devel] [RFC PATCH 0/3] block: add support for 4k logical blocks

2011-11-23 Thread Paolo Bonzini
This series adds support for 4k logical blocks by bouncing requests unless the host's logical_block_size is also 4096. Paolo Bonzini (3): block: add bdrv_get_alignment, use it raw: implement raw_get_alignment block: do not rely on the buffer alignment passed to the guest block.c