Re: [Qemu-devel] directly inject packet in vrings and not use NetClient APIs

2014-11-19 Thread Anshul Makkar
Thanks Luke.. Ok, so theoretically it should work. That's useful suggestions. Let me debug virtio-net driver for possible cause. Thanks Anshul Makkar On Wed, Nov 19, 2014 at 6:39 PM, Luke Gorrie wrote: > Hi Anshul, > > On Wednesday, November 19, 2014, Anshul Makkar < > anshul.mak...@profitbri

Re: [Qemu-devel] directly inject packet in vrings and not use NetClient APIs

2014-11-19 Thread Luke Gorrie
Hi Anshul, On Wednesday, November 19, 2014, Anshul Makkar < anshul.mak...@profitbricks.com> wrote: > > > I have implemented a usermode app that is using vhost-user backend and > gets direct access to the guest vrings. I am able to receive packets but > when I post directly to vring and issue kick,

[Qemu-devel] directly inject packet in vrings and not use NetClient APIs

2014-11-19 Thread Anshul Makkar
Hi, Vhost-net backend tap, implements read and write polls to listen for packets in guest vrings (implemented through ioeventfds) and gives direct access to the guest vrings. While transmitting the packet up to VM, tap backend uses "qemu_send_packet_async"/ NetClient APIs to transmit the packets