All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Kouya Shimura <kouya@jp.fujitsu.com>
Cc: xen-devel@lists.xensource.com,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>,
	Samuel Thibault <samuel.thibault@eu.citrix.com>
Subject: Re: Windows Bug Check 0x101 issue
Date: Thu, 27 Mar 2008 09:08:31 +0000	[thread overview]
Message-ID: <20080327090831.2a9f9b05@core> (raw)
In-Reply-To: <7ktziseo9r.fsf@pingu.sky.yk.fujitsu.co.jp>

On Thu, 27 Mar 2008 14:20:32 +0900
Kouya Shimura <kouya@jp.fujitsu.com> wrote:

> Ian Jackson writes:
> > This one is much better but I still have a comment ...
> 
> Thank you for many comments. Actually I'm not good at qemu.
> How about the attached patch?
> 
> > > +static void ide_flush_cb(void *opaque, int ret)
> > > +{
> > > +    IDEState *s = opaque;
> > > +
> > > +    s->status = READY_STAT;
> > > +    ide_set_irq(s);
> > 
> > You need to check the return value (ret) and set an appropriate IDE
> > error status if the operation failed.  ide_abort_command may be of
> > some use.
> 
> This patch uses ide_abort_command(). 
> As for the failure case, it looks too much for me.
> I hope someone who is expert on the IDE fixes it.

If a flush fails you can't just just reply with an abrt as I said earlier,
many OS will then loop forever trying to finish the flush. flush cache
has unusual error reporting behaviour (see ATA-7). An abort means a cache
flush fail and to retry for further sectors, if you can't properly
emulate reporting block numbers back then you need to offline the virtual
device.

Alan

  reply	other threads:[~2008-03-27  9:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-24  9:53 Windows Bug Check 0x101 issue Kouya Shimura
2008-03-24 11:01 ` Samuel Thibault
2008-03-24 11:05 ` Keir Fraser
2008-03-25 10:54   ` Kouya Shimura
2008-03-25 10:59     ` Keir Fraser
2008-03-25 11:28     ` Ian Jackson
2008-03-25 17:57       ` Samuel Thibault
2008-03-26  7:07         ` Kouya Shimura
2008-03-26 10:13           ` Samuel Thibault
2008-03-26 10:29           ` Ian Jackson
2008-03-26 10:27             ` Alan Cox
2008-03-26 10:51               ` Ian Jackson
2008-03-26 12:34                 ` Alan Cox
2008-03-26 14:18                   ` Ian Jackson
2008-03-26 10:39             ` Ian Jackson
2008-03-27  5:20             ` Kouya Shimura
2008-03-27  9:08               ` Alan Cox [this message]
2008-03-27 16:34                 ` Ian Jackson
2008-03-27 16:30                   ` Alan Cox
2008-03-27 17:39               ` Ian Jackson
2008-03-28  3:09                 ` Kouya Shimura
     [not found]                 ` <87k5jnl7qt.fsf@basil.nowhere.org>
2008-03-28  9:32                   ` Ian Jackson

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=20080327090831.2a9f9b05@core \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=kouya@jp.fujitsu.com \
    --cc=samuel.thibault@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.