]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
make write cacheing controllable by guest
authorIan Jackson <iwj@mariner.uk.xensource.com>
Thu, 27 Mar 2008 17:58:45 +0000 (17:58 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:16:24 +0000 (12:16 +0100)
commitd1e5cc49395831cb9c23e00c37898cf943c1d4be
tree3dd9e76c8d32d11a02fa3527993a7fa380e01f7b
parent0772e6364bc2c782b73d46d351185c5889acd422
make write cacheing controllable by guest

This 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> and includes code to save
the write_cache setting from Samuel Thibault.

From: Rik van Riel <riel@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/ide.c