qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Leonardo Reiter" <lreiter76@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Hard disk support is broken in Windows 98SE guest
Date: Wed, 3 Oct 2007 14:30:22 -0400	[thread overview]
Message-ID: <779506c70710031130w742906e9me6bc47a3a412c716@mail.gmail.com> (raw)
In-Reply-To: <779506c70710031118p6ea95878i553ddc04c013ea6e@mail.gmail.com>

On 10/3/07, Leonardo Reiter <lreiter76@gmail.com> wrote:
> Index: hw/ide.c
> ===================================================================
> RCS file: /cvsroot/qemu/qemu/hw/ide.c,v
> retrieving revision 1.69
> diff -a -u -r1.69 ide.c
> --- hw/ide.c    17 Sep 2007 08:09:47 -0000      1.69
> +++ hw/ide.c    3 Oct 2007 18:00:31 -0000
> @@ -900,7 +900,9 @@
>      if(bm == NULL) {
>         bm = qemu_mallocz(sizeof(BMDMAState));
>         s->bmdma = bm;
> -    }
> +    } else if (bm->aiocb != NULL)
> +        qemu_aio_wait();
> +
>      bm->ide_if = s;
>      bm->dma_cb = ide_sector_write_aio_cb;
>
>
> The danger here is that the AIO signal came in already by the time we
> call qemu_aio_wait() (but bm->aiocb was not called yet), which is
> pretty unlikely, but I think it could trigger a deadlock.

If you want to try that hack, I think it's probably safer (and more
correct) to use qemu_aio_flush() instead of qemu_aio_wait().

Regards,

Leo Reiter

      reply	other threads:[~2007-10-03 18:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 12:16 [Qemu-devel] Hard disk support is broken in Windows 98SE guest Victor Shkamerda
2007-10-02 16:43 ` Thiemo Seufer
2007-10-03  7:57   ` Victor Shkamerda
2007-10-03 18:18     ` Leonardo Reiter
2007-10-03 18:30       ` Leonardo Reiter [this message]

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=779506c70710031130w742906e9me6bc47a3a412c716@mail.gmail.com \
    --to=lreiter76@gmail.com \
    --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).