[dpdk-dev] [PATCH v3 1/2] virtio/vdev: add embeded device emulation

2016-04-22 Thread Tan, Jianfeng
Hi Yuanhan, On 4/22/2016 6:01 AM, Yuanhan Liu wrote: > On Thu, Apr 21, 2016 at 02:56:35AM +, Jianfeng Tan wrote: >> Background: Previously, we usually use a virtio device in QEMU/VM's >> context as below pic shows. Virtio nic is emulated in QEMU, and usually >> presented in VM as a PCI

[dpdk-dev] [PATCH v3 1/2] virtio/vdev: add embeded device emulation

2016-04-22 Thread Thomas Monjalon
2016-04-22 18:12, Tan, Jianfeng: > On 4/22/2016 6:01 AM, Yuanhan Liu wrote: > > Further more, I'd suggest to divide the code into following files: > > > > - virtio-user/virtio.c > > > >All virtio device emulation goes here. > > > > - virtio-user/vhost-user.c > > > >The vhost-user frontend

[dpdk-dev] [PATCH v3 1/2] virtio/vdev: add embeded device emulation

2016-04-22 Thread Yuanhan Liu
On Fri, Apr 22, 2016 at 06:12:21PM +0800, Tan, Jianfeng wrote: > >>How: we implement another instance of struct virtio_pci_ops to intercept > >>the communications between VM and QEMU. Instead of rd/wr ioport or PCI > >>configuration space, here we directly talk with backend through the vhost >

[dpdk-dev] [PATCH v3 1/2] virtio/vdev: add embeded device emulation

2016-04-21 Thread Yuanhan Liu
On Thu, Apr 21, 2016 at 02:56:35AM +, Jianfeng Tan wrote: > Background: Previously, we usually use a virtio device in QEMU/VM's > context as below pic shows. Virtio nic is emulated in QEMU, and usually > presented in VM as a PCI device. > > |---| > | vm| > |---| (over

[dpdk-dev] [PATCH v3 1/2] virtio/vdev: add embeded device emulation

2016-04-21 Thread Jianfeng Tan
Background: Previously, we usually use a virtio device in QEMU/VM's context as below pic shows. Virtio nic is emulated in QEMU, and usually presented in VM as a PCI device. |---| | vm| |---| (over PCI bus or MMIO or Channel I/O) |QEMU | -> device emulation