Bug 760862

Summary: adev->name should not be null if it is specified in cli
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.8CC: juzhang, michen, mkenneth, rhod, shuang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-01 14:11:49 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-12-07 08:01:42 UTC
Description of problem:
Boot a vm with -pcidevice host=28:00.1,name=func1, then hot unplug it, qemu-kvm claims:
(qemu) pci_del pci_addr=0:6
(qemu) Unregister host PCI device 28:00.1 ("") from guest
                                          ^^^^^
From source code, under qemu/hw/pci-hotplug.c line 173, in function qemu_pci_hot_deassign_device:
term_printf("Unregister host PCI device %02x:%02x.%1x "
                "(\"%s\") from guest\n",
                adev->bus, adev->dev, adev->func, adev->name);

adev->name should output the correct string passed in cli.

Version-Release number of selected component (if applicable):
# rpm -q kvm;uname -r
kvm-83-246.el5
2.6.18-300.el5


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ronen Hod 2012-02-01 14:11:49 UTC
Closing since the bug does not hurt the actual work in any way. It is only about the printed output. We do not fix such bugs in RHEL5.9
Is it solved in RHEL6.2?
Thanks, Ronen.