From: Pavel Fedin <p.fedin@samsung.com>
To: 'Cornelia Huck' <cornelia.huck@de.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 2/3] virtio-mmio: introduce set_guest_notifiers
Date: Fri, 08 May 2015 09:45:00 +0300 [thread overview]
Message-ID: <00aa01d0895a$81d423d0$857c6b70$@samsung.com> (raw)
In-Reply-To: <20150507153942.29afef5f.cornelia.huck@de.ibm.com>
Hello!
> Hm, weren't there some patches for irqfd on arm?
Yes, there were. However, they had a design problem by breaking backwards compatibility
with unmodified virtio. Their idea was to set up one more shared memory area between
virtio and vhost-net and use it to pass ISR value, which helps to distinguish, which event
took place (queue update or config change). So, this idea was rejected.
http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg03056.html
I thought about it, and technically, i think, this can be done in better way. Actually,
as far as i understood, all we need is mechanism for distinguishing between these two
events. On PCI we do this by using multiple IRQs via MSI-X, and one IRQ signals exactly
one type of event. MSI-X code also has "two IRQs" mode as a failsafe, where one IRQ
signals config change and another IRQ signals queues update (and all queues are polled in
turn). I think a similar thing could be done for virtio-mmio. It could allocate two IRQs
instead of one and describe both of them in the device tree. Guest side, upon seeing that,
could make use of those two IRQs and acknowledge to the host side that "yes, i am new
version and use new mode".
But, sorry, i will unlikely implement this, because we already have PCI with MSI-X (i
hope this is going to be published soon), so my project can use PCI emulation. So
implementing irqfds for virtio-mmio is a bit out of my scope.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
next prev parent reply other threads:[~2015-05-08 6:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 10:49 [Qemu-devel] [PATCH v2 2/3] virtio-mmio: introduce set_guest_notifiers Pavel Fedin
2015-05-07 13:39 ` Cornelia Huck
2015-05-08 6:45 ` Pavel Fedin [this message]
2015-05-08 10:20 ` Cornelia Huck
2015-05-08 10:30 ` Pavel Fedin
2015-05-08 10:45 ` Cornelia Huck
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='00aa01d0895a$81d423d0$857c6b70$@samsung.com' \
--to=p.fedin@samsung.com \
--cc=cornelia.huck@de.ibm.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).