Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Attempting to hot add ninth vf to guest fails, returning a generic error
message "device 'pci-assign' could not be initialized".in fact,for now.the number of vfs/pfs can be assigned to very guest is limited to 8.further more,
(qemu) console can do it like the following messages.
(qemu) device_add pci-assign,host=09:11.0,id=vf9
pci-assign: Maximum supported assigned devices (8) already attached
Device 'pci-assign' could not be initialized
Version-Release number of selected component (if applicable):
(1)Qemu version
qemu-kvm-0.12.1.2-2.147.el6.x86_64
(2)Host kernel
#uname -r
2.6.32-117.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1.generate vfs
#modprobe -r igb
#modprobe igb max_vfs=7
2.Unbind 14 vfs form host
3.Boot guest
#/usr/libexec/qemu-kvm -m 2G -smp 4 -drive file=/root/zhangjunyi/rhel6.1-ide.qcow2,if=none,id=test,boot=on,cache=none,format=qcow2,werror=stop,rerror=stop -device virtio-blk-pci,drive=test -cpu qemu64,+sse2,+x2apic -monitor stdio -boot c -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=22:11:22:45:66:95 -vnc :9 -qmp tcp:0:4446,server,nowait
4.Telnet QMP
telnet 10.66.82.225 4446
Escape character is '^]'.
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}, "capabilities": []}}
{"execute":"qmp_capabilities"}
{"return": {}}
5.hot added 9vfs
#{"execute":"device_add","arguments":{"driver":"pci-assign","host":"09:10.0","id":"vf1"}}
{"return": {}}
-------
until ninth vf
#{"execute":"device_add","arguments":{"driver":"pci-assign","host":"09:11.0","id":"vf9"}}
Actual results:
{"error": {"class": "DeviceInitFailed", "desc": "Device 'pci-assign' could not be initialized", "data": {"device": "pci-assign"}}}
Expected results:
Please refer to (qemu)'s emit messages
(qemu) device_add pci-assign,host=09:11.0,id=vf9
pci-assign: Maximum supported assigned devices (8) already attached
Device 'pci-assign' could not be initialized
Additional info:
Description of problem: Attempting to hot add ninth vf to guest fails, returning a generic error message "device 'pci-assign' could not be initialized".in fact,for now.the number of vfs/pfs can be assigned to very guest is limited to 8.further more, (qemu) console can do it like the following messages. (qemu) device_add pci-assign,host=09:11.0,id=vf9 pci-assign: Maximum supported assigned devices (8) already attached Device 'pci-assign' could not be initialized Version-Release number of selected component (if applicable): (1)Qemu version qemu-kvm-0.12.1.2-2.147.el6.x86_64 (2)Host kernel #uname -r 2.6.32-117.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.generate vfs #modprobe -r igb #modprobe igb max_vfs=7 2.Unbind 14 vfs form host 3.Boot guest #/usr/libexec/qemu-kvm -m 2G -smp 4 -drive file=/root/zhangjunyi/rhel6.1-ide.qcow2,if=none,id=test,boot=on,cache=none,format=qcow2,werror=stop,rerror=stop -device virtio-blk-pci,drive=test -cpu qemu64,+sse2,+x2apic -monitor stdio -boot c -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=22:11:22:45:66:95 -vnc :9 -qmp tcp:0:4446,server,nowait 4.Telnet QMP telnet 10.66.82.225 4446 Escape character is '^]'. {"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}, "capabilities": []}} {"execute":"qmp_capabilities"} {"return": {}} 5.hot added 9vfs #{"execute":"device_add","arguments":{"driver":"pci-assign","host":"09:10.0","id":"vf1"}} {"return": {}} ------- until ninth vf #{"execute":"device_add","arguments":{"driver":"pci-assign","host":"09:11.0","id":"vf9"}} Actual results: {"error": {"class": "DeviceInitFailed", "desc": "Device 'pci-assign' could not be initialized", "data": {"device": "pci-assign"}}} Expected results: Please refer to (qemu)'s emit messages (qemu) device_add pci-assign,host=09:11.0,id=vf9 pci-assign: Maximum supported assigned devices (8) already attached Device 'pci-assign' could not be initialized Additional info: