Re: [libvirt] [PATCHv2] Support vhost-net mode at qemu startup for virtio network devices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 18, 2010 at 04:19:10PM -0400, Laine Stump wrote:
> Attempt to turn on vhost-net mode for devices of type NETWORK, BRIDGE,
> and DIRECT (macvtap).
> 
> * src/qemu/qemu_conf.h: add vhostfd to qemuBuildHostNetStr prototype
>                         add qemudOpenVhostNet prototype
>                         new flag to set when :,vhost=" found in qemu help
> * src/qemu/qemu_conf.c: * set QEMUD_CMD_FLAG_VNET_HOST is ",vhost=" found
>                           in qemu help
>                         * qemudOpenVhostNet - opens /dev/vhost-net to pass
>                           to qemu if everything is in place to use it.
>                         * qemuBuildHostNetStr - add vhostfd to commandline
>                           if it's not empty (higher levels decide whether
>                           or not to fill it in)
>                         * qemudBuildCommandLine - if /dev/vhost-net is
>                           successfully opened, add its fd to tapfds array
>                           so it isn't closed on qemu exec, and populate
>                           vhostfd_name to be passed in to commandline
>                           builder.
> * src/qemu/qemu_driver.c: add filler 0 for new arg to qemuBuildHostNetStr,
>                           along with a note that this must be implemented
>                           in order for hot-plug of vhost-net virtio devices
>                           to work properly (once qemu "netdev_add" monitor
>                           command is implemented).

  Okay patch looks fine,

  ACK,

pushed !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]