All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] ioemu: advertise write cache feature
Date: Fri, 4 Apr 2008 16:32:17 +0200	[thread overview]
Message-ID: <20080404143217.GD4075@implementation> (raw)
In-Reply-To: <20080402104548.GD4618@implementation.uk.xensource.com>

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));

      reply	other threads:[~2008-04-04 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-02 10:45 [PATCH] ioemu: advertise write cache enabled only when it is Samuel Thibault
2008-04-04 14:32 ` Samuel Thibault [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080404143217.GD4075@implementation \
    --to=samuel.thibault@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.