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.
Bug 678963 - QMP: does not emit the real reasons of vfs assignment failure
Summary: QMP: does not emit the real reasons of vfs assignment failure
Keywords:
Status: CLOSED DUPLICATE of bug 616415
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Luiz Capitulino
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 1101141 (view as bug list)
Depends On:
Blocks: 580954
TreeView+ depends on / blocked
 
Reported: 2011-02-21 05:17 UTC by juzhang
Modified: 2015-01-28 08:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-25 13:23:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description juzhang 2011-02-21 05:17:39 UTC
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:

Comment 3 Luiz Capitulino 2011-04-25 13:23:39 UTC

*** This bug has been marked as a duplicate of bug 616415 ***

Comment 4 Markus Armbruster 2015-01-28 08:16:28 UTC
*** Bug 1101141 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.