Bug 579737

Summary: QEMU: Too many devices are available for unplug in Windows XP (and we don't support that)
Product: Red Hat Enterprise Linux 5 Reporter: RHEL Program Management <pm-rhel>
Component: kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: high    
Version: 5.5CC: acathrow, azarembo, ccurran, chrisw, cpelland, djorm, dyasny, ehabkost, gcosta, khong, llim, mkenneth, mtosatti, ovirt-maint, pep, pm-eus, Rhev-m-bugs, tao, tburke, virt-maint, ykaul
Target Milestone: rcKeywords: Reopened, ZStream
Target Release: ---   
Hardware: All   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-05 21:09:46 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: 498774, 671544    
Bug Blocks:    

Description RHEL Program Management 2010-04-06 12:32:47 UTC
This bug has been copied from bug #498774 and has been proposed
to be backported to 5.5 z-stream (EUS).

Comment 5 Keqin Hong 2010-04-07 09:22:34 UTC
Verified on kvm-83-164.el5_5.2, Passed 
1. With default bios, emulated devices appeared on the "Safely Remove Hardware"
list under WinXP, as in 
"
Safely remove Intel 82371SB PCI to ISA bridge
Safely remove Intel(R) PRO/1000MT Network Connection #2
Safely remove Cirrus Logic 5446 Compatible Graphics Adapter
"

2. By using "-bios bios-nohotplug.bin" option, no list of emulated devices are
provided by the "Safely Remove Hardware" under WinXP.

CLI:
1. using default bios
# usr/libexec/qemu-kvm -m 2G -smp 2 -drive file=winXP-32.raw,if=ide,cache=off
-net nic,model=e1000,vlan=1,macaddr=02:00:40:3F:20:10 -net
tap,vlan=1,script=/etc/qemu-ifup -boot c -uuid
17544ecc-d3a1-4d3c-a386-12daf50015f1 -usbdevice tablet -no-hpet -rtc-td-hack
-no-kvm-pit-reinjection -monitor stdio -notify all -cpu qemu64,+sse2 -balloon
none -startdate now -vnc :1 -M rhel5.5.0

2. using nohotplugable bios
/usr/libexec/qemu-kvm -m 2G -smp 2 -drive file=winXP-32.raw,if=ide,cache=off
-net nic,model=e1000,vlan=1,macaddr=02:00:40:3F:20:10 -net
tap,vlan=1,script=/etc/qemu-ifup -boot c -uuid
17544ecc-d3a1-4d3c-a386-12daf50015f1 -usbdevice tablet -no-hpet -rtc-td-hack
-no-kvm-pit-reinjection -monitor stdio -notify all -cpu qemu64,+sse2 -balloon
none -startdate now -vnc :1 -M rhel5.5.0 -bios bios-nohotplug.bin

Comment 7 Keqin Hong 2010-04-19 10:14:05 UTC
1. Further tested with various Windows OSes on kvm-83-164.el5_5.6. The previously "Safe remove ..." options for devices (NIC, PCI to ISA bridge, QXL) disappeared.
------------------------
guest OS      |  Result 
------------------------
winXP         |    P
win7-32       |    P
win7-64       |    P
win2003-32    |    P
win2003-64    |    P
win2008-32    |    P
win2008-64    |    P
win2008r2     |    P
-------------------------
P-pass; F-fail

As can been seen, all passed with "-bios bios-nohotplug.bin" (and could be reproduced with default bios.bin).

2. Regarding QXL, "-bios bios-nohotplug.bin" disables unhotplug "Red Hat QXL GPU" and "Red Hat Virtual Desktop Interface Port" as well, no option for "safely" removing them.