Bug 701616
Summary: | limitation on max number of assigned devices does not take effect if hot-plug pci devices | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Chao Yang <chayang> |
Component: | kvm | Assignee: | Alex Williamson <alex.williamson> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.7 | CC: | gcosta, juzhang, michen, mkenneth, rhod, shuang, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | kvm-83-241.el5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-02-21 03:14:17 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 580948 |
Description
Chao Yang
2011-05-03 11:26:33 UTC
Verified this bug in following environment: # uname -r;rpm -q kvm 2.6.18-300.el5 kvm-83-246.el5 Qemu-kvm will quit on "Too many assigned devices" if cold plug more than 8 pci devices when testing device assignment. And refuse to assign the 9th one and claim "Too many assigned devices" instead of quitting. 1. Cold plug 9 VF's: # /usr/libexec/qemu-kvm -no-hpet -rtc-td-hack -usbdevice tablet -startdate now -name rhel5.8_64 -smp 2 -m 4G -boot dc -net none -drive file=/home/rhel5.8_x86_64.qcow2,media=disk,if=virtio,cache=none,format=qcow2,werror=stop,boot=on -qxl 1 -spice ic=on,host=0,disable-ticketing,port=9000 -cpu qemu64 -M rhel5.6.0 -notify all -balloon none -monitor stdio -pcidevice host=08:10.0 -pcidevice host=08:10.1 -pcidevice host=08:10.2 -pcidevice host=08:10.3 -pcidevice host=08:10.4 -pcidevice host=08:10.5 -pcidevice host=08:10.6 -pcidevice host=08:10.7 -pcidevice host=08:11.0 Too many assigned devices 2. Hot plug 9 VF's: (qemu) pci_add pci_addr=auto host host=08:10.0 Registered host PCI device 08:10.0 ("08:10.0") as guest device 00:05.0 OK domain 0, bus 0, slot 5, function 0 <snip> (qemu) pci_add pci_addr=auto host host=08:10.7 Registered host PCI device 08:10.7 ("08:10.7") as guest device 00:0c.7 OK domain 0, bus 0, slot 12, function 0 (qemu) pci_add pci_addr=auto host host=08:11.0 Too many assigned devices Error adding device; check syntax failed to add host=08:11.0 (qemu) 3. cold plug 8 first, then hot plug 1: (qemu) pci_add pci_addr=auto host host=08:11.0 Too many assigned devices Error adding device; check syntax failed to add host=08:11.0 (qemu) Actual Result: Cold plug more than 8: qemu-kvm quitted on "Too many assigned devices" Hot plug more than 8: qemu-kvm refused to assign the 9th one to guest, claimed "Too many assigned devices", and guest won't quit Cold plug 8 VF's, Hot plug the 9th one: qqemu-kvm refused to assign the 9th one to guest, claimed "Too many assigned devices", and guest won't quit Based on above info, this issue has been fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0149.html |