In KVM, NIC model can be set to
virtio (latest) or the older
e1000 (not recommended, emulated). In virtio, one has the option of using
vhost-net driver or
vhost-net and qemu differs in how packets are sent from guest to host and subsequently sent to physical NIC.
The vhost-net module is a kernel-level back end for virtio networking that reduces virtualization overhead by moving virtio packet processing tasks out of user space (the QEMU process) and into the kernel (the vhost-net driver). vhost-net is only available for virtio network interfaces. If the vhost-net kernel module is loaded, it is enabled by default for all virtio interfaces, but can be disabled in the interface configuration if a particular workload experiences a degradation in performance when vhost-net is in use. cite
My question is, how do one check if vhost-net module is loaded or not? Does the usual command
modinfo work here as well?