DPDK usage discussions
 help / color / mirror / Atom feed
From: 杨晔 <yangye@ict.ac.cn>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Why kickfd from qemu is zero in qemu-dpdk vhost-user architecture?
Date: Sun, 15 Jul 2018 15:27:57 +0800 (GMT+08:00)	[thread overview]
Message-ID: <108fd3c5.16a17.1649cd6c391.Coremail.yangye@ict.ac.cn> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 995 bytes --]

Hello,

I use the "vhost-user" mode in the qemu, and the backend is the dpdk-vhost.

But when I use the eventfd_read(vq->kickfd,&val) function. It always return an error, and the val has always been 0.

The kickfd is the eventfd that passing from qemu to vhost when the vring is set up and calling the vhost_user_set_vring_kick function.

It should be a none-zero value when there are packets in the sending queue.

The virtio-frontend should notify the backend then do the dequeue operation.

Does anyone know about this? I am looking forward to your reply.


Thank you.




--


Yang Ye

Network Research Center, Institute of Computing Technology, Chinese Academy of Sciences,

NO.6 Kexueyuan South Road, Zhongguancun, Haidian District, Beijing, China (100190)\x16º&}éà–+&j»qr‰’ºrn—^t÷žõóm5ñ\x17­º¹ÏjØ_zx%ŠÉš®Ü\¢d^qè¯y×ë¢išŠ\&Ñþx‚Š •ç(šf¢—	´\x7fž ¢ˆ%yÊ&ïvç͹Ἕ¥Ù(®\x03è²×âÇ\b­„DŒLø÷Žx\x13`Cñú+ºÇ«±Ú]’ŠàJéõ䛥ÛM|ÓÞ{×Ï´ÛM\x02\x11$ÑyÇ¢½ç[Êf¢—	´\x7fž ¢ˆ%yÊ&Â+aHÄωÜõÞþ¬£]¼ë½¼ç	šåú+ºÇ«±Ú]’ŠàJéõ䛥ÛM|ÓN{×Í;ÓCÃL2ˆ1( «n­ë

             reply	other threads:[~2018-07-15  7:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-15  7:27 杨晔 [this message]
     [not found] ` <CAHckoCyTtv4GCbG-e5ckOkYJt9DKNW0q5CtvbUMTghDA=mX=Dg@mail.gmail.com>
2018-07-15  8:21   ` 杨晔
     [not found]     ` <CAHckoCxefjEU9boiuB+-Z3Mp-ZzeoZtd-w7SQ8knJhK7n4xH=w@mail.gmail.com>
2018-07-15 10:16       ` 杨晔

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=108fd3c5.16a17.1649cd6c391.Coremail.yangye@ict.ac.cn \
    --to=yangye@ict.ac.cn \
    --cc=users@dpdk.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).