Bug 701610

Summary: slot number should keep in accordance
Product: Red Hat Enterprise Linux 5 Reporter: Chao Yang <chayang>
Component: kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.7CC: gcosta, juzhang, michen, mkenneth, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-17 17:40:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chao Yang 2011-05-03 11:03:48 UTC
Description of problem:
Boot a guest with multiple pcidevices, the slot number displays by info pci should keep in accordance with the one used to hot-unplug the pcidevice.
The output of slot number of info pci is decimal but need to use hexadecimal slot number to delete it. 
Version-Release number of selected component (if applicable):
# rpm -qa|grep kvm
etherboot-roms-kvm-5.4.4-13.el5
kvm-qemu-img-83-232.el5
etherboot-zroms-kvm-5.4.4-13.el5
kmod-kvm-83-232.el5
kvm-debuginfo-83-232.el5
kvm-83-232.el5
kvm-tools-83-232.el5
kmod-kvm-debug-83-232.el5


How reproducible:
100%

Steps to Reproduce:
1. boot a guest with 8 pcidevices
2. info pci
Bus  0, device   5, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84000000 [0x84003fff].
      BAR3: 32 bit memory at 0x84004000 [0x84007fff].
  Bus  0, device   6, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84008000 [0x8400bfff].
      BAR3: 32 bit memory at 0x8400c000 [0x8400ffff].
  Bus  0, device   7, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84010000 [0x84013fff].
      BAR3: 32 bit memory at 0x84014000 [0x84017fff].
  Bus  0, device   8, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84018000 [0x8401bfff].
      BAR3: 32 bit memory at 0x8401c000 [0x8401ffff].
  Bus  0, device   9, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84020000 [0x84023fff].
      BAR3: 32 bit memory at 0x84024000 [0x84027fff].
  Bus  0, device  10, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84028000 [0x8402bfff].
      BAR3: 32 bit memory at 0x8402c000 [0x8402ffff].
  Bus  0, device  11, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84030000 [0x84033fff].
      BAR3: 32 bit memory at 0x84034000 [0x84037fff].
  Bus  0, device  12, function 0:
    Ethernet controller: PCI device 8086:10ca
      BAR0: 32 bit memory at 0x84038000 [0x8403bfff].
      BAR3: 32 bit memory at 0x8403c000 [0x8403ffff].

3. hot-unplug pcidevices with slot number greater than 9 by two ways:
  (qemu) pci_del pci_addr=0:10
  (qemu) pci_del pci_addr=0:a
  
Actual results:
(qemu) pci_del pci_addr=0:10
slot 16 empty
(qemu) pci_del pci_addr=0:a
(qemu) Unregister host PCI device 09:10.5 ("") from guest


Expected results:


Additional info:

Comment 1 Glauber Costa 2011-05-17 17:40:27 UTC
not rhel5 material.