|
From: | Avi Kivity |
Subject: | Re: [Qemu-devel] [PATCH] honor IDE_DMA_BUF_SECTORS |
Date: | Fri, 27 Mar 2009 13:02:49 +0300 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
Samuel Thibault wrote:
Nothing in Linux makes filesystems and devices systematically read/write the amount of data that was requested.
We're talking about the qemu block layer, not Linux. You're proposing to take the posix API rules and apply them to the qemu block layer. But posix read/write does not fit how DMA works. A request should either complete fully, or fail, leaving the destination (disk or memory) in an undefined state. Partial completions are impossible to implement efficiently, and are a needless complication.
-- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.
[Prev in Thread] | Current Thread | [Next in Thread] |