From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QEMU version 0.9.1
Date: Sun, 6 Jan 2008 23:52:53 -0600 [thread overview]
Message-ID: <20080107055253.GD24641@tapir> (raw)
In-Reply-To: <47815041.2080908@bellard.org>
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
On Sun, Jan 06, 2008 at 11:03:45PM +0100, Fabrice Bellard wrote:
>
> QEMU version 0.9.1 is out !
and if you want to install an OpenSolaris guest on it, apply the attached
patch over it.
the patch prevents OpenSolaris from overflowing a small buffer when querying
the emulated CDROM for its capabilities and getting more data than requested
at install time.
beware that there are still other problems with the implementation of that
command that are being addressed in a bigger patch that is still under
revision.
Carlo
[-- Attachment #2: qemu-ide-cdrom-opensolaris.patch --]
[-- Type: text/plain, Size: 950 bytes --]
Index: hw/ide.c
===================================================================
RCS file: /sources/qemu/qemu/hw/ide.c,v
retrieving revision 1.79
diff -u -p -r1.79 ide.c
--- hw/ide.c 24 Dec 2007 14:33:24 -0000 1.79
+++ hw/ide.c 7 Jan 2008 05:24:16 -0000
@@ -1648,6 +1648,7 @@ static void ide_atapi_cmd(IDEState *s)
ASC_INV_FIELD_IN_CMD_PACKET);
break;
}
+ max_len = ube16_to_cpu(packet + 7);
memset(buf, 0, 32);
bdrv_get_geometry(s->bs, &total_sectors);
buf[3] = 16;
@@ -1658,7 +1659,7 @@ static void ide_atapi_cmd(IDEState *s)
buf[14] = buf[7] == 0x10; /* (in)active */
buf[17] = 0x08; /* CD-ROM profile */
buf[18] = buf[7] == 0x08; /* (in)active */
- ide_atapi_cmd_reply(s, 32, 32);
+ ide_atapi_cmd_reply(s, 32, max_len);
break;
}
default:
next prev parent reply other threads:[~2008-01-07 5:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-06 22:03 [Qemu-devel] QEMU version 0.9.1 Fabrice Bellard
2008-01-07 5:52 ` Carlo Marcelo Arenas Belon [this message]
2008-01-07 8:15 ` Christian MICHON
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=20080107055253.GD24641@tapir \
--to=carenas@sajinet.com.pe \
--cc=qemu-devel@nongnu.org \
/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.