ia64/xen-unstable

changeset 17392:80f3c86feb7f

ioemu: advertise write cache feature

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Apr 04 15:43:01 2008 +0100 (2008-04-04)
parents 633099ff88a8
children 271ec82db921
files tools/ioemu/hw/ide.c
line diff
     1.1 --- a/tools/ioemu/hw/ide.c	Fri Apr 04 14:49:37 2008 +0100
     1.2 +++ b/tools/ioemu/hw/ide.c	Fri Apr 04 15:43:01 2008 +0100
     1.3 @@ -655,7 +655,8 @@ static void ide_identify(IDEState *s)
     1.4      put_le16(p + 68, 120);
     1.5      put_le16(p + 80, 0xf0); /* ata3 -> ata6 supported */
     1.6      put_le16(p + 81, 0x16); /* conforms to ata5 */
     1.7 -    put_le16(p + 82, (1 << 14));
     1.8 +    /* 14=nop 5=write_cache */
     1.9 +    put_le16(p + 82, (1 << 14) | (1 << 5));
    1.10      /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
    1.11      put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
    1.12      put_le16(p + 84, (1 << 14));