]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commit
ide.c make write cacheing controllable by guest ide-write-cache
authorIan Jackson <iwj@mariner.uk.xensource.com>
Mon, 25 Feb 2008 18:13:54 +0000 (18:13 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:34:02 +0000 (12:34 +0100)
commitdc23ff50bb890c8c743d7f86ccfb7f300c03db82
treee4d84f09d08862b34f0f776b4a2a7aa2034563a5
parent02d7667c79550e4479c798ddc445c90ebfe19476
ide.c make write cacheing controllable by guest

The attached patch implements the ATA write cache feature.  This
enables a guest to control, in the standard way, whether disk writes
are immediately committed to disk before the IDE command completes, or
may be buffered in the host.

In this patch, by default buffering is off, which provides better
reliability but may have a performance impact.  It would be
straightforward to change the default, or perhaps offer a command-line
option, if that would be preferred.

This patch is derived from one which was originally submitted to the
Xen tree by Rik van Riel <riel@redhat.com>.
hw/ide.c