From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Pavel Fedin <p.fedin@samsung.com>
Cc: 'Christian Borntraeger' <borntraeger@de.ibm.com>,
qemu-devel@nongnu.org, "'Michael S. Tsirkin'" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] virtio: Implement userspace forwarding for host notifiers
Date: Thu, 19 Nov 2015 12:41:14 +0100 [thread overview]
Message-ID: <20151119124114.1c818abe.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <012d01d122b3$99fadce0$cdf096a0$@samsung.com>
On Thu, 19 Nov 2015 13:18:13 +0300
Pavel Fedin <p.fedin@samsung.com> wrote:
> Hello!
>
> > Looks like this would be ok for virtio-ccw (as it does not call
> > virtio_queue_set_host_notifier_forwarding)
>
> Yes, this is the reason why i intentionally did not insert extra logic into virtio_queue_set_host_notifier_fd_handler(), but made
> it into separate function. I don't know whether KVM on S390 reports KVM_CAP_IOEVENTFD.
Yes, it does.
>
> > Question is might something like this for virtio-ccw useful as well?
>
> Yes, provided you have something to bind userspace actions to. Looks like S390 doesn't use MMIO here at all, but some obscure (for
> me) thing, called "subchannel".
:) Think of a "subchannel" as a communication channel between the
operating system and the device. It is used to transmit commands that
can do various things like read, write, or configure stuff. Basically,
stuff that is handled via mmio on other platforms.
> Another question is whether you can have kernel without KVM_CAP_IOEVENTFD on S390. Was it introduced since the beginning, or some
> time later?
There are old kernels around that have the needed basic support for the
channel subsystem (needed for virtio-ccw), but not the ioeventfd
support.
>
> > We cannot use memory_region, though, we would need to handle that in our
> > diagnose code.
>
> Sorry, this phrase is a complete mystery to me, i have no idea what is diagnose code, as well as have never seen S390 in real life.
"diagnose" is a hypercall on the s390. For virtio-ccw, guest->host
notification happens via a special hypercall (diagnose 0x500).
Therefore, we need to hook into our implementation of that diagnose for
our handling.
> I think if you have motivation, you could implement userspace forwarding for ccw yourself, since you know the thing and know how to
> do it. For MMIO it was indeed very simple.
I'll take a peek at your patch.
next prev parent reply other threads:[~2015-11-19 11:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 9:50 [Qemu-devel] [PATCH] virtio: Implement userspace forwarding for host notifiers Pavel Fedin
2015-11-19 9:56 ` Christian Borntraeger
2015-11-19 10:18 ` Pavel Fedin
2015-11-19 11:41 ` Cornelia Huck [this message]
2015-11-19 12:02 ` Pavel Fedin
2015-11-19 12:05 ` Michael S. Tsirkin
2015-11-19 10:55 ` Michael S. Tsirkin
2015-11-19 11:44 ` Pavel Fedin
2015-11-19 12:01 ` Michael S. Tsirkin
2015-11-19 12:06 ` Paolo Bonzini
2015-11-19 12:10 ` Michael S. Tsirkin
2015-11-19 12:17 ` Pavel Fedin
2015-11-19 12:31 ` Paolo Bonzini
2015-11-19 12:55 ` Cornelia Huck
2015-11-19 16:03 ` Pavel Fedin
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=20151119124114.1c818abe.cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=mst@redhat.com \
--cc=p.fedin@samsung.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).