From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATCH] ioemu: advertise write cache feature Date: Fri, 4 Apr 2008 16:32:17 +0200 Message-ID: <20080404143217.GD4075@implementation> References: <20080402104548.GD4618@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20080402104548.GD4618@implementation.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ioemu: advertise write cache feature Signed-off-by: Samuel Thibault 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));