From: <lu.zhipeng@zte.com.cn>
To: jasowang@redhat.com
Cc: qemu-devel@nongnu.org, mst@redhat.com
Subject: [Qemu-devel] 答复: Re: 答复: Re: [PATCH] vhost: don't set vring call fd to -1 invhost_virtqueue_start for vhost-user
Date: Tue, 22 Aug 2017 08:45:14 +0800 (CST) [thread overview]
Message-ID: <201708220845148646501@zte.com.cn> (raw)
[-- Attachment #1: Type: text/plain, Size: 2516 bytes --]
>On 2017年08月21日 11:28, lu.zhipeng@zte.com.cn wrote:
>> if (!vdev->use_guest_notifier_mask) {>>> > /* TODO: check and handle errors. */>>> < vhost_virtqueue_mask(dev, vdev, idx, false)>> ---------- set right callfd>> }>>>>> if (k->query_guest_notifiers &&>> k->query_guest_notifiers(qbus->parent) &&>> virtio_queue_vector(vdev, idx) == VIRTIO_NO_VECTOR) {>> file.fd = -1>> r = dev->vhost_ops->vhost_set_vring_call(dev, &file)>> -----------set call fd to -1>> if (r) {>> goto fail_vector>> }>> }>>> So the callfd of ovs+dpdk in host is -1. it can't be able to interact with the guest.>>>>>The queue does not even an vector, so it won't generate any interrupt. >Why callfd is still needed?
----it's a bug of my vhost-user backend. Thanks.
为了让您的VPlat虚拟机故障和docker故障得到高效的处理,请上报故障到: $VPlat技术支持。
芦志朋 luzhipeng
IT开发工程师 IT Development
Engineer
操作系统产品部/中心研究院/系统产品 OS Product Dept./Central R&D Institute/System Product
四川省成都市天府大道中段800号
E: lu.zhipeng@zte.com.cn
www.zte.com.cn
原始邮件
发件人: <jasowang@redhat.com>
收件人:芦志朋10108272
抄送人: <qemu-devel@nongnu.org> <mst@redhat.com>
日 期 :2017年08月21日 11:35
主 题 :Re: [Qemu-devel] 答复: Re: [PATCH] vhost: don't set vring call fd to -1 invhost_virtqueue_start for vhost-user
On 2017年08月21日 11:28, lu.zhipeng@zte.com.cn wrote:
> if (!vdev->use_guest_notifier_mask) {
>
> /* TODO: check and handle errors. */
>
> vhost_virtqueue_mask(dev, vdev, idx, false)
>
> ---------- set right callfd
>
> }
>
>
>
>
> if (k->query_guest_notifiers &&
>
> k->query_guest_notifiers(qbus->parent) &&
>
> virtio_queue_vector(vdev, idx) == VIRTIO_NO_VECTOR) {
>
> file.fd = -1
>
> r = dev->vhost_ops->vhost_set_vring_call(dev, &file)
>
> -----------set call fd to -1
>
> if (r) {
>
> goto fail_vector
>
> }
>
> }
>
> So the callfd of ovs+dpdk in host is -1. it can't be able to interact with the guest.
>
>
The queue does not even an vector, so it won't generate any interrupt.
Why callfd is still needed?
Thanks
[-- Attachment #2: 24242e5637af428891c4db731e7765ad.jpg --]
[-- Type: image/jpeg, Size: 2064 bytes --]
[-- Attachment #3: 9ae3e214c17d49ed935d87c674ba3ee2.jpg --]
[-- Type: image/jpeg, Size: 6015 bytes --]
reply other threads:[~2017-08-22 0:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201708220845148646501@zte.com.cn \
--to=lu.zhipeng@zte.com.cn \
--cc=jasowang@redhat.com \
--cc=mst@redhat.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).