Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9ijN-0002ZT-Hv for qemu-devel@nongnu.org; Mon, 08 Dec 2008 11:13:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9ijL-0002Z8-IB for qemu-devel@nongnu.org; Mon, 08 Dec 2008 11:13:08 -0500 Received: from [199.232.76.173] (port=35162 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9ijL-0002Z1-Co for qemu-devel@nongnu.org; Mon, 08 Dec 2008 11:13:07 -0500 Received: from web51103.mail.re2.yahoo.com ([206.190.38.145]:25465) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L9ijL-0005PW-2V for qemu-devel@nongnu.org; Mon, 08 Dec 2008 11:13:07 -0500 Date: Mon, 8 Dec 2008 08:13:03 -0800 (PST) From: Justin Chevrier MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <412925.88247.qm@web51103.mail.re2.yahoo.com> Subject: [Qemu-devel] [PATCH] IDE: Implement SEEK command Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Openserver issues a SEEK command during initial drive detection. It refuses to report the hard drive if this command fails. This patch gets Openserver to list the hard drive but installation still fails (freezes) later on due to an unrelated IDE issue (patch on its way). Justin Changelog: Implement SEEK command Signed-off-by: Justin Chevrier Index: hw/ide.c =================================================================== --- hw/ide.c (revision 5948) +++ hw/ide.c (working copy) @@ -2324,6 +2324,13 @@ s->status = READY_STAT; ide_set_irq(s); break; + case WIN_SEEK: + if(s->is_cdrom) + goto abort_cmd; + /* XXX: Check that seek is within bounds */ + s->status = READY_STAT | SEEK_STAT; + ide_set_irq(s); + break; /* ATAPI commands */ case WIN_PIDENTIFY: if (s->is_cdrom) {