qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Sinha, Ani" <Ani.Sinha@tellabs.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] virtqueue corruption in emulation mode?
Date: Wed, 28 Sep 2011 13:44:35 -0500	[thread overview]
Message-ID: <5DBF2D80-35E7-41CA-A52E-68200E75DC33@tellabs.com> (raw)
In-Reply-To: <CAJSP0QWEgbC9j3vicvzn5pfXm2=MiuK32D1MtqaMzjZg25trVg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]


On Sep 28, 2011, at 9:47 AM, Stefan Hajnoczi wrote:

I need a helper thread to do blocking IO. The device IOCTLS are inherently blocking, unfortunately.

posix-aio-compat.c already implements a threadpool.  It is geared
towards using the QEMU block layer (BlockDriverState) but the pure
ioctl codepath can be used without a BlockDriverState by passing NULL.
So this could save you some effort, check out paio_submit().


;) yeah, I realized that after looking at the code that I could have used that infrastructure. May be in the next release of this driver I will do that or more realistically when I write another driver, I will make use of it. However, I have one reservation about that code. Like you said, it is geared towards the QEMU block driver. I believe the code can be reworked to be more generic so that it can be reused elsewhere as is.

ani


============================================================
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
============================================================

[-- Attachment #2: Type: text/html, Size: 2217 bytes --]

      reply	other threads:[~2011-09-28 18:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27  0:16 [Qemu-devel] virtqueue corruption in emulation mode? Sinha, Ani
2011-09-27  7:17 ` Stefan Hajnoczi
2011-09-28  2:01   ` Sinha, Ani
2011-09-28  8:51     ` Stefan Hajnoczi
2011-09-28 14:23       ` Sinha, Ani
2011-09-28 16:47         ` Stefan Hajnoczi
2011-09-28 18:44           ` Sinha, Ani [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=5DBF2D80-35E7-41CA-A52E-68200E75DC33@tellabs.com \
    --to=ani.sinha@tellabs.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.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 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).