ia64/xen-unstable

changeset 15574:637ff26be6ff

Make QEMU consistently report write caching support for emulated IDE
drives to fix a hang during SLES 9 HVM guest installation.

Without this, the SLES 9 installer kernels (32 and 64 bit) were
getting inconsistent information from QEMU as to whether the
(emulated) IDE drives support write caching (which they do). So part
of the kernel thought write caching was enabled (and enabled the usage
of barrier writes) and part of it didn't, which triggered a bug in
which the same barrier write is submitted over and over again ...

Fixed by setting another bit in the WIN_IDENTIFY (IDE drive "identify"
command) response to indicate we really, truly support write caching.

Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
author kfraser@localhost.localdomain
date Wed Jul 11 10:48:15 2007 +0100 (2007-07-11)
parents ff51ff907f8c
children 73b6733e4bb1
files tools/ioemu/hw/ide.c
line diff
     1.1 --- a/tools/ioemu/hw/ide.c	Tue Jul 10 23:42:13 2007 +0100
     1.2 +++ b/tools/ioemu/hw/ide.c	Wed Jul 11 10:48:15 2007 +0100
     1.3 @@ -596,7 +596,8 @@ static void ide_identify(IDEState *s)
     1.4      /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
     1.5      put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     1.6      put_le16(p + 84, (1 << 14));
     1.7 -    put_le16(p + 85, (1 << 14));
     1.8 +    /* 14=nop 5=write_cache */
     1.9 +    put_le16(p + 85, (1 << 14) | (1 << 5));
    1.10      /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
    1.11      put_le16(p + 86, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
    1.12      put_le16(p + 87, (1 << 14));