question for <interface> in ethernet type and multiple queues in KVM (start VM failed)

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

 



Hi,
  
    I use ethernet vif for VM (libvirt 1.1.0  qemu 1.5.1). xml as such
    
        <interface type='ethernet'>
            <script path='' />
            <target dev='tap_mq'/>
            <mac address='52:54:00:19:9e:4e'/>
            <model type='virtio' />
            <driver name='vhost' queues='2'/>
        </interface>

    tap_mq is a tap device with multi_queue property which was created on host by ip command, such as follows
    #ip tuntap add tap_mq mode tap multi_queue

    I want to use multiple queue feature for this vif so I set queues='2' in xml.
    
    When start VM , an error occurs 
    "error: unsupported configuration: Multiqueue network is not supported for: ethernet".
    This error is reported from function qemuBuildInterfaceCommandLine
    
    /* Currently nothing besides TAP devices supports multiqueue. */
    if (net->driver.virtio.queues > 0 &&
        !(actualType == VIR_DOMAIN_NET_TYPE_NETWORK ||
          actualType == VIR_DOMAIN_NET_TYPE_BRIDGE)) {
        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                       _("Multiqueue network is not supported for: %s"),
                       virDomainNetTypeToString(actualType));
        return -1;
    }

    The comment specifies that only TAP device supports multiqueue. But VIR_DOMAIN_NET_TYPE_ETHERNET is also TAP device I think.
    
    IMHO, libvirt can build qemu commandline as 
    "-device virtio-net,netdev=net1,mq=on,vectors=5,mac=52:54:00:19:9e:4e"
    "-netdev type=tap,ifname=tap0,id=net1,vhost=on,vhostforce=on,queues=2".
    Qemu can open tapfds and vhostfds by itself other than libvirt opens and transfers them to qemu in this case.
    
    Or there's other way to use multiqueue feature in ethernet tpye ?
    
Regards,
Rui

--
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]