All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: adq <adq@lidskialf.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] fix scsi-generic
Date: Sun, 08 Aug 2010 15:11:20 +0200	[thread overview]
Message-ID: <4C5EACF8.1010101@redhat.com> (raw)
In-Reply-To: <AANLkTinVH89VQzNPB6PRuxnvzkYCtTG_-P1HBkQuTohK@mail.gmail.com>

Am 07.08.2010 02:55, schrieb adq:
> Hi, I've been tracking down why scsi generic devices (using SG_IO)
> don't work any more. After adding debug, I can see that it actually
> submits the scsi CDB in hw/scsi-generic.c/execute_command(), but that
> the hw/scsi-generic.c/scsi_read_complete() callback is never called.
> 
> This is because these are done with ioctls, and the posix async ioctl
> code is, I think, broken right now. Some more debugging, led me to
> posix-aio-compat.c/posix_aio_process_queue():
> 
>             if (acb->async_context_id != async_context_id) {
> 
> The async_context_ids don't match, so the request is never handled.
> This is because the acb->async_context_id field is not initialised in
> posix-aio-compat.c/paio_ioctl() (compare with
> posix-aio-compat.c/paio_submit()). The attached patch adds the missing
> line in.
> 
> This seems to fix the problem. Of course, /now/ I'm getting other
> weird problems (as I'm trying to see if I can get slysoft anydvd
> working in a KVM winXP vm), but they need further investigation and
> likely other fixes.
> 
> Please forgive me if I'm mistaken in this, I've only just started
> looking at the qemu code.

The patch looks correct to me.

Please use git format-patch to generate the patch, so that it contains a
decent commit message and I can apply it with git am. Also, please don't
forget the Signed-off-by line, otherwise we can't accept it.

Kevin

  parent reply	other threads:[~2010-08-08 16:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-07  0:55 [Qemu-devel] [patch] fix scsi-generic adq
2010-08-07  1:50 ` [Qemu-devel] " adq
2010-08-07  2:03   ` adq
2010-08-08 13:11 ` Kevin Wolf [this message]
2010-08-08 20:08   ` [Qemu-devel] " adq
2010-08-08 22:13     ` adq
2010-08-08 23:51       ` adq
2010-11-12 10:00         ` [Qemu-devel] " Paolo Bonzini
2010-11-17 22:53           ` adq
2010-11-17 23:33             ` adq
2010-11-19  2:07               ` adq
2010-08-30 13:16     ` [Qemu-devel] " Kevin Wolf

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=4C5EACF8.1010101@redhat.com \
    --to=kwolf@redhat.com \
    --cc=adq@lidskialf.net \
    --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.