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

[Xen-changelog] [xen-3.2-testing] ioemu: advertise write cache as enabled only when it actually is.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207577540 -3600
# Node ID 387b5107113771d863593aeb8414d51d542fcdab
# Parent  f18df63aff3aa5d97a431761da6a6ec7ae185629
ioemu: advertise write cache as enabled only when it actually is.

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
xen-unstable changeset:   17373:b89a5d046aa73918a6fb41a948357d73cbc54bb2
xen-unstable date:        Wed Apr 02 15:30:26 2008 +0100
---
 tools/ioemu/hw/ide.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r f18df63aff3a -r 387b51071137 tools/ioemu/hw/ide.c
--- a/tools/ioemu/hw/ide.c      Fri Apr 04 14:51:19 2008 +0100
+++ b/tools/ioemu/hw/ide.c      Mon Apr 07 15:12:20 2008 +0100
@@ -650,7 +650,7 @@ static void ide_identify(IDEState *s)
     put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     put_le16(p + 84, (1 << 14));
     /* 14=nop 5=write_cache */
-    put_le16(p + 85, (1 << 14) | (1 << 5));
+    put_le16(p + 85, (1 << 14) | (s->write_cache << 5));
     /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
     put_le16(p + 86, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     put_le16(p + 87, (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®.