qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Small issue in the IDE emulation
Date: Sat, 4 Oct 2008 13:30:37 +0200	[thread overview]
Message-ID: <20081004113037.GA4540@implementation.famille.thibault.fr> (raw)
In-Reply-To: <20081004111002.GA14712@kyllikki.org>

Vincent Sanders, le Sat 04 Oct 2008 12:10:02 +0100, a écrit :
> While doing some other work I have come across a small issue with the
> DIAGNOSE command in the qemu IDE implementation. The status register
> value is dependant on the drive being a packet device or not. The
> simple patch (attached) fixes this.
> 
> === modified file 'hw/ide.c'
> --- hw/ide.c	2008-10-01 01:43:16 +0000
> +++ hw/ide.c	2008-10-04 10:56:58 +0000
> @@ -2308,8 +2308,15 @@
>              break;
>          case WIN_DIAGNOSE:
>              ide_set_signature(s);
> -            s->status = READY_STAT | SEEK_STAT;
> -            s->error = 0x01;
> +            if (s->is_cdrom)
> +                s->status = 0; /* ATAPI spec (v6) section 9.10 defines packet
> +                                * devices to return a clear status register
> +                                * with READY_STAT *not* set. */

But shouldn't we at least set SEEK_STAT?

Samuel

  reply	other threads:[~2008-10-04 11:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-04 11:10 [Qemu-devel] Small issue in the IDE emulation Vincent Sanders
2008-10-04 11:30 ` Samuel Thibault [this message]
2008-10-04 11:51   ` Vincent Sanders
2008-10-06 11:14 ` Vincent Sanders
2008-10-07 20:19   ` Anthony Liguori

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=20081004113037.GA4540@implementation.famille.thibault.fr \
    --to=samuel.thibault@ens-lyon.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).