From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56526)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1ZzMIJ-0008Pr-Gf
for qemu-devel@nongnu.org; Thu, 19 Nov 2015 05:18:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ZzMIE-0005k5-En
for qemu-devel@nongnu.org; Thu, 19 Nov 2015 05:18:23 -0500
Received: from mailout1.w1.samsung.com ([210.118.77.11]:35606)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ZzMIE-0005ju-8R
for qemu-devel@nongnu.org; Thu, 19 Nov 2015 05:18:18 -0500
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout1.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NY200LUA4MFKF80@mailout1.w1.samsung.com> for
qemu-devel@nongnu.org; Thu, 19 Nov 2015 10:18:15 +0000 (GMT)
From: Pavel Fedin
References: <011b01d122af$c60f7ce0$522e76a0$@samsung.com>
<564D9CD2.3080504@de.ibm.com>
In-reply-to: <564D9CD2.3080504@de.ibm.com>
Date: Thu, 19 Nov 2015 13:18:13 +0300
Message-id: <012d01d122b3$99fadce0$cdf096a0$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Content-language: ru
Subject: Re: [Qemu-devel] [PATCH] virtio: Implement userspace forwarding for
host notifiers
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: 'Christian Borntraeger' , qemu-devel@nongnu.org
Cc: 'Cornelia Huck' , "'Michael S. Tsirkin'"
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.
> 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".
Another question is whether you can have kernel without KVM_CAP_IOEVENTFD on S390. Was it introduced since the beginning, or some
time later?
> 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.
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.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia