You could paste some code here. Is the eventfd is valid when passing to vhost?
Maybe the eventfd is bad. Thanks, Feng Li 手机:13401157876 Web:http://www.smartx.com/ 地址:北京市海淀区科学院南路2号融科资讯中心C座北楼712 2018-07-15 15:27 GMT+08:00 杨晔 <[email protected]>: > 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) -- The SmartX email address is only for business purpose. Any sent message that is not related to the business is not authorized or permitted by SmartX. 本邮箱为北京志凌海纳科技有限公司(SmartX)工作邮箱. 如本邮箱发出的邮件与工作无关,该邮件未得到本公司任何的明示或默示的授权.
