* [PATCH] ioemu: advertise write cache enabled only when it is
@ 2008-04-02 10:45 Samuel Thibault
2008-04-04 14:32 ` [PATCH] ioemu: advertise write cache feature Samuel Thibault
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2008-04-02 10:45 UTC (permalink / raw)
To: xen-devel
ioemu: advertise write cache enabled only when it is
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 59d2638a7243 tools/ioemu/hw/ide.c
--- a/tools/ioemu/hw/ide.c Tue Apr 01 18:06:20 2008 +0100
+++ b/tools/ioemu/hw/ide.c Wed Apr 02 11:09:21 2008 +0100
@@ -660,7 +660,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));
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH] ioemu: advertise write cache feature
2008-04-02 10:45 [PATCH] ioemu: advertise write cache enabled only when it is Samuel Thibault
@ 2008-04-04 14:32 ` Samuel Thibault
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ 2008-04-04 14:32 UTC (permalink / raw)
To: xen-devel
ioemu: advertise write cache feature
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 633099ff88a8 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:30:42 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));
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-04 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-02 10:45 [PATCH] ioemu: advertise write cache enabled only when it is Samuel Thibault
2008-04-04 14:32 ` [PATCH] ioemu: advertise write cache feature Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.