Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 590884 - bogus 'info pci' state when hot-added assigned device fails to initialize
bogus 'info pci' state when hot-added assigned device fails to initialize
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.0
All Linux
low Severity medium
: rc
: ---
Assigned To: Alex Williamson
Virtualization Bugs
:
: 579981 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-10 17:07 EDT by Alex Williamson
Modified: 2010-11-11 14:30 EST (History)
3 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.59.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-06-04 05:05:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alex Williamson 2010-05-10 17:07:21 EDT
Description of problem:

For a pci device hot added via pci_add in the monitor, if the device assignment initfn function errors (such as from trying to assign a device with shared interrupts), the pci state shown via 'info pci' in the monitor contains a bogus entry for the device.

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.49.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Try to hot pci_add a device that uses shared interrupts
2.
3.
  
Actual results:
'info pci' shows a garbage entry

Expected results:
no residual garbage

Additional info:
Comment 2 RHEL Product and Program Management 2010-05-10 18:51:03 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.
Comment 3 Alex Williamson 2010-05-10 23:15:13 EDT
Patch posted upstream:
http://lists.nongnu.org/archive/html/qemu-devel/2010-05/msg00710.html
Comment 9 Qunfang Zhang 2010-06-04 05:05:32 EDT
Can reproduce on qemu-kvm-0.12.1.2-2.48.el6. and verified on qemu-kvm-0.12.1.2-2.68.el6, passed.

Steps:
0.Unbind the pci device (for example a NIC card) from host.
1.Boot a guest without pci device assigned.
 /usr/libexec/qemu-kvm -m 2G -smp 2 -drive file=rver-5.5-64-virtio.qcow2,if=none,id=drive-ide0-0-0 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -boot order=dc,menu=on -uuid 17644ecc-d3a1-4d3c-a386-12daf50015f2 -rtc base=utc -no-hpet -rtc-td-hack -no-kvm-pit-reinjection -monitor stdio -cpu qemu64,+sse2 -balloon none -vnc :10
2.modprobe acpiphp (in guest)
3.(qemu)info pci
(qemu)pci_add pci_addr=auto host host=03:02.0
4.(qemu)info pci

In the old version(qemu-kvm-0.12.1.2-2.48.el6)
1.After step 4, there is a garbage entry
 Bus  0, device   4, function 1:
    Class 0000: PCI device 0040:0000
      BAR0: 32 bit prefetchable memory at 0xffffffffffffffff [0x0000041f].
      BAR1: 32 bit memory at 0x00000000 [0x020002af].
      BAR2: 32 bit prefetchable memory at 0x02000210 [0x0400047f].
      BAR3: 32 bit memory at 0x000003b1 [0x02000530].
      BAR4: 32 bit memory at 0x02000320 [0x7f63e807f1f7].
      BAR6: I/O at 0x2005000 [0x400517f].
      id "���c"

While in the fixed version, no entry generated when input "info pci" in monitor.

So, I will close this bug.
Comment 10 Amit Shah 2010-06-23 02:51:34 EDT
*** Bug 579981 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.