Re: [Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-21 Thread Paolo Bonzini
On 12/21/2011 05:55 PM, Christoph Hellwig wrote: On Wed, Dec 14, 2011 at 01:40:22PM +0100, Paolo Bonzini wrote: If the partitions are aligned, the OS will always issue aligned requests, because file system blocks are already 4k. It won't nessecarily. For example XFS will do a fair amount of s

Re: [Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-21 Thread Christoph Hellwig
On Wed, Dec 14, 2011 at 01:40:22PM +0100, Paolo Bonzini wrote: > If the partitions are aligned, the OS will always issue aligned requests, > because file system blocks are already 4k. It won't nessecarily. For example XFS will do a fair amount of sub-blocksize I/O for metadata and the log. Note

Re: [Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-14 Thread Paolo Bonzini
On 12/14/2011 01:05 PM, Kevin Wolf wrote: Am 14.12.2011 12:47, schrieb Paolo Bonzini: On 12/14/2011 12:13 PM, Kevin Wolf wrote: As we discussed before, the really interesting point here is defaults, and whatever you choose to do is wrong in some respect. So it looks like you chose to make the

Re: [Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-14 Thread Kevin Wolf
Am 14.12.2011 12:47, schrieb Paolo Bonzini: > On 12/14/2011 12:13 PM, Kevin Wolf wrote: >> As we discussed before, the really interesting point here is defaults, >> and whatever you choose to do is wrong in some respect. >> >> So it looks like you chose to make the virtual device default to the >>

Re: [Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-14 Thread Paolo Bonzini
On 12/14/2011 12:13 PM, Kevin Wolf wrote: As we discussed before, the really interesting point here is defaults, and whatever you choose to do is wrong in some respect. So it looks like you chose to make the virtual device default to the host block size. ... wait wait, I default to 512. :) He

Re: [Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-14 Thread Kevin Wolf
Am 13.12.2011 13:37, schrieb Paolo Bonzini: > Running with mismatched host and guest logical block sizes is going > to become more important as 4k-sector disks become more widespread. > This is because we need a 512 byte disk to boot from. > > Mismatched block sizes have two problems: > > 1) with

[Qemu-devel] [PATCH 00/17] Support mismatched host and guest logical block sizes

2011-12-13 Thread Paolo Bonzini
Running with mismatched host and guest logical block sizes is going to become more important as 4k-sector disks become more widespread. This is because we need a 512 byte disk to boot from. Mismatched block sizes have two problems: 1) with cache=none or with non-raw protocols, you just cannot do