All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <levinsasha928@gmail.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm <kvm@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
	Pekka Enberg <penberg@kernel.org>,
	Asias He <asias.hejun@gmail.com>,
	Prasad Joshi <prasadjoshi124@gmail.com>,
	Cyrill Gorcunov <gorcunov@gmail.com>
Subject: Re: ioeventfd question
Date: Fri, 27 May 2011 11:39:37 +0300	[thread overview]
Message-ID: <1306485577.3217.2.camel@lappy> (raw)
In-Reply-To: <4DDF6118.9030103@redhat.com>

On Fri, 2011-05-27 at 11:30 +0300, Avi Kivity wrote:
> On 05/26/2011 10:03 PM, Sasha Levin wrote:
> > Hi Avi,
> >
> > I'm working on adding ioeventfd support into tools/kvm/.
> > Currently the implementation creates ioeventfd entries at the
> > 'VIRTIO_PCI_QUEUE_NOTIFY' of each device and waits on all of them using
> > epoll().
> > The basics are working - when IO is triggered I receive a notification
> > using the event instead of an exit.
> >
> > I couldn't find a way to retrieve the value written to the PIO port -
> > the guest memory at that location doesn't change, 'reading' the event
> > just returns 1 (as expected) and I couldn't find anything else which
> > might suggest what value was written to the PIO port.
> 
> You can use KVM_IOEVENTFD_FLAG_DATAMATCH for that.
> 

Oh, so I need to create one for each vq instead of one for each device.

Thanks!

-- 

Sasha.


      reply	other threads:[~2011-05-27  8:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26 19:03 ioeventfd question Sasha Levin
2011-05-27  8:30 ` Avi Kivity
2011-05-27  8:39   ` Sasha Levin [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=1306485577.3217.2.camel@lappy \
    --to=levinsasha928@gmail.com \
    --cc=asias.hejun@gmail.com \
    --cc=avi@redhat.com \
    --cc=gorcunov@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=penberg@kernel.org \
    --cc=prasadjoshi124@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 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.