lkml.org 
[lkml]   [2022]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Commit 'iomap: add support for dma aligned direct-io' causes qemu/KVM boot failures
From
On 9/29/22 18:39, Christoph Hellwig wrote:
> On Thu, Sep 29, 2022 at 10:37:22AM -0600, Keith Busch wrote:
>>> I am aware, and I've submitted the fix to qemu here:
>>>
>>> https://lists.nongnu.org/archive/html/qemu-block/2022-09/msg00398.html
>>
>> I don't think so. Memory alignment and length granularity are two completely
>> different concepts. If anything, the kernel's ABI had been that the length
>> requirement was also required for the memory alignment, not the other way
>> around. That usage will continue working with this kernel patch.
>
> Well, Linus does treat anything that breaks significant userspace
> as a regression. Qemu certainly is significant, but that might depend
> on bit how common configurations hitting this issue are.

Seeing the QEMU patch, I agree that it's a QEMU bug though. I'm
surprised it has ever worked.

It requires 4K sectors in the host but not in the guest, and can be
worked around (if not migrating) by disabling O_DIRECT. I think it's
not that awful, but we probably should do some extra releases of QEMU
stable branches.

Paolo

\
 
 \ /
  Last update: 2022-09-29 19:36    [W:1.529 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site