From: Paolo Bonzini Date: Tue, 3 Jul 2012 13:19:37 +0000 (+0200) Subject: virtio-blk: allow toggling host cache between writeback and writethrough X-Git-Tag: v3.6-rc1~43^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd5d503862b0d0d927c56ef2e34d3ededac88039;p=pandora-kernel.git virtio-blk: allow toggling host cache between writeback and writethrough This patch adds support for the new VIRTIO_BLK_F_CONFIG_WCE feature, which exposes the cache mode in the configuration space and lets the driver modify it. The cache mode is exposed via sysfs. Even if the host does not support the new feature, the cache mode is visible (thanks to the existing VIRTIO_BLK_F_WCE), but not modifiable. Signed-off-by: Paolo Bonzini Signed-off-by: Rusty Russell --- Reading git-diff-tree failed