Michael S. Tsirkin wrote:let me see I am with you: 1. vhost gets from user space through ioctl packet socket fd OR tun fd - but never both 2. for packet socket fd VM.TX is translated by vhost to sendmsg which goes through the NIC NIC RX makes the fd poll to signal and then recvmsg is called on the fd, then vhost places the packet in a virtq 3. for tun fd VM.TX is translated by vhost to sendmsg which is translated by tun to netif_rx which is then handled by the bridge NIC RX goes to the bridge which xmits the packet a tun interface, now what makes tun provide this packet to vhost and how it is done? Tun has code to support some virtualization-specific features, however, it has also some inherent problems, I think, for example, you don't know over which NIC eventually a packet will be sent and as such, the feature advertising to the guest (virtio-net) NIC is problematic, for example, TSO. With vhost, since you are directly attached to a NIC and assuming its a PF or VF NIC and not something like macvlan/veth you can actually know what features are supported by this NIC. Or. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Og dreams of kernels |
| Jens Axboe | [PATCH 31/33] Fusion: sg chaining support |
| Arnd Bergmann | Re: finding your own dead "CONFIG_" variables |
| Mark Brown | [PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset |
| Tony Breeds | [LGUEST] Look in object dir for .config |
git: | |
| Brian Downing | Re: Git in a Nutshell guide |
| John Benes | Re: master has some toys |
| Matthias Lederhofer | [PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree |
| Alexander Sulfrian | [RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set |
| Junio C Hamano | Re: Rss produced by git is not valid xml? |
| Linux Kernel Mailing List | iSeries: fix section mismatch in iseries_veth |
| Linux Kernel Mailing List | ixbge: remove TX lock and redo TX accounting. |
| Linux Kernel Mailing List | ixgbe: fix several counter register errata |
| Linux Kernel Mailing List | b43: fix build with CONFIG_SSB_PCIHOST=n |
| Linux Kernel Mailing List | 9p: block-based virtio client |
| Michael Breuer | Re: [PATCH] af_packet: Don't use skb after dev_queue_ |
