]> xenbits.xensource.com Git - xen.git/commitdiff
ioemu: advertise write cache feature
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Apr 2008 14:43:01 +0000 (15:43 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Apr 2008 14:43:01 +0000 (15:43 +0100)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/ioemu/hw/ide.c

index c8df301b39dc0eb4a2d162e5a069cc8eba230d88..45136bbef3839bc807cd6aac99801cc143aafd3d 100644 (file)
@@ -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));