Description of problem:
Talked w/ jason, If boot a guest w/ multi-queues nic, and not assign a id to this virtio-net device, qemu-kvm should assign only one id to it, so file this bug to track this issue.
Version-Release number of selected component (if applicable):
# rpm -q qemu-kvm
qemu-kvm-1.5.0-2.el7.x86_64
# uname -r
3.10.0-0.rc6.62.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Boot guest w/ multi-queues nic, and do not assign id to it.
/usr/libexec/qemu-kvm -cpu Penryn -enable-kvm -m 2048 -smp 4.sockets=1,cores=4,threads=1 -name rhel6u3c2 -drive file=/home/rhel7/rhel7.qcow2,if=none,id=drive-scsi0-disk0,format=qcow2,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi0,addr=0x4 -device scsi-hd,scsi-id=0,lun=0,bus=scsi0.0,drive=drive-scsi0-disk0,id=virtio-disk0 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup,queues=4 -device virtio-net-pci,mq=on,vectors=9,netdev=hostnet0,mac=54:52:1b:35:3c:18 -device virtio-balloon-pci,id=balloon0 -vnc :10 -vga std -boot menu=on -monitor stdio
2.under hmp, check the id that assigned by qemu-kvm.
(qemu) info network
virtio-net-pci.0: index=0,type=nic,model=virtio-net-pci,macaddr=54:52:1b:35:3c:18
\ hostnet0: index=0,type=tap,ifname=tap0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown
virtio-net-pci.1: index=1,type=nic,
\ hostnet0: index=1,type=tap,ifname=tap0,script=no,downscript=no
virtio-net-pci.2: index=2,type=nic,
\ hostnet0: index=2,type=tap,ifname=tap0,script=no,downscript=no
virtio-net-pci.3: index=3,type=nic,
\ hostnet0: index=3,type=tap,ifname=tap0,script=no,downscript=no
Actual results:
The ids of the queues are not same.
Expected results:
all the ids should be same one.
Additional info:
Test that boot gest and assign id to the nic, under hmp:
(qemu) info network
test: index=0,type=nic,model=virtio-net-pci,macaddr=54:52:1b:35:3c:18
\ hostnet0: index=0,type=tap,ifname=tap0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown
test: index=1,type=nic,
\ hostnet0: index=1,type=tap,ifname=tap0,script=no,downscript=no
test: index=2,type=nic,
\ hostnet0: index=2,type=tap,ifname=tap0,script=no,downscript=no
test: index=3,type=nic,
\ hostnet0: index=3,type=tap,ifname=tap0,script=no,downscript=no