[dpdk-dev] [RFC PATCH 5/5] virtio: Extend virtio-net PMD to support container environment
huawei.xie at intel.com
Fri Jan 22 09:14:49 CET 2016
On 1/21/2016 7:09 PM, Tetsuya Mukawa wrote:
> virtio: Extend virtio-net PMD to support container environment
> The patch adds a new virtio-net PMD configuration that allows the PMD to
> work on host as if the PMD is in VM.
> Here is new configuration for virtio-net PMD.
> - CONFIG_RTE_LIBRTE_VIRTIO_HOST_MODE
> To use this mode, EAL needs physically contiguous memory. To allocate
> such memory, add "--shm" option to application command line.
> To prepare virtio-net device on host, the users need to invoke QEMU
> process in special qtest mode. This mode is mainly used for testing QEMU
> devices from outer process. In this mode, no guest runs.
> Here is QEMU command line.
> $ qemu-system-x86_64 \
> -machine pc-i440fx-1.4,accel=qtest \
> -display none -qtest-log /dev/null \
> -qtest unix:/tmp/socket,server \
> -netdev type=tap,script=/etc/qemu-ifup,id=net0,queues=1\
> -device virtio-net-pci,netdev=net0,mq=on \
> -chardev socket,id=chr1,path=/tmp/ivshmem,server \
> -device ivshmem,size=1G,chardev=chr1,vectors=1
> * QEMU process is needed per port.
Does qtest supports hot plug virtio-net pci device, so that we could run
one QEMU process in host, which provisions the virtio-net virtual
devices for the container?
More information about the dev