[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] ioemu: advertise write cache feature



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207320181 -3600
# Node ID 80f3c86feb7f9069dfd2c0cf64302cbce67da6af
# Parent  633099ff88a848fe0e48dd52d7f3820045c2bf8e
ioemu: advertise write cache feature

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 tools/ioemu/hw/ide.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 633099ff88a8 -r 80f3c86feb7f tools/ioemu/hw/ide.c
--- a/tools/ioemu/hw/ide.c      Fri Apr 04 14:49:37 2008 +0100
+++ b/tools/ioemu/hw/ide.c      Fri Apr 04 15:43:01 2008 +0100
@@ -655,7 +655,8 @@ static void ide_identify(IDEState *s)
     put_le16(p + 68, 120);
     put_le16(p + 80, 0xf0); /* ata3 -> ata6 supported */
     put_le16(p + 81, 0x16); /* conforms to ata5 */
-    put_le16(p + 82, (1 << 14));
+    /* 14=nop 5=write_cache */
+    put_le16(p + 82, (1 << 14) | (1 << 5));
     /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
     put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     put_le16(p + 84, (1 << 14));

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.