Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 758596

Summary: balloon driver can't be detected in windows guest when changing pci addr
Product: Red Hat Enterprise Linux 6 Reporter: Xiaomei Gao <xigao>
Component: virtio-winAssignee: Vadim Rozenfeld <vrozenfe>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: acathrow, bcao, bsarathy, juzhang, michen, qzhang
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-12-08 02:53:57 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:

Description Xiaomei Gao 2011-11-30 07:38:33 UTC
Description of problem:
balloon driver is firstly installed in windows guest and works well. But when i boot the guest by changed pci addr, balloon driver can't be detected.

Version-Release number of selected component (if applicable):
# uname -r
2.6.32-220.el6.x86_64
# rpm -qa | grep qemu-kvm
qemu-kvm-0.12.1.2-2.210.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot a windows guest
/usr/libexec/qemu-kvm -m 4G -smp 2 -cpu cpu64-rhel6,+x2apic -drive file=/mnt/xigao/win2008-32-virtio.raw,format=raw,if=none,id=drive-virtio-0-0,werror=stop,rerror=stop,cache=none -device virtio-blk-pci,drive=drive-virtio-0-0,id=virtio-0-0,bus=pci.0,addr=0x3,bootindex=1 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,mac=00:10:20:2d:31:21,bus=pci.0,addr=0x4,id=net0 -uuid `uuidgen` -rtc base=localtime,clock=host,driftfix=slew -no-kvm-pit-reinjection -monitor stdio -name win2008-32 -spice port=8000,disable-ticketing -vga qxl -balloon none -usb -device usb-tablet -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=4,bus=pci.0,addr=0x05 -chardev socket,id=channel0,path=/var/lib/libvirt/qemu/win2k8-R2.channel0,server,nowait -device virtserialport,chardev=channel0,name=org.linux-kvm.port.0,bus=virtio-serial0.0 -device virtio-balloon-pci,addr=0x6,bus=pci.0 -drive file=/home/disk1.raw,if=none,id=drive-virtio1,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=drive-virtio1,id=virtio-blk-pci1,addr=0x7,bus=pci.0

2 install ballon driver,restart the guest and detect it in device manager
3 change the pci addr 
  /usr/libexec/qemu-kvm -device virtio-balloon-pci,addr=0xa,bus=pci.0
4 check balloon driver in device manager

Actual results:
balloon driver can not be detected in device manager

Expected results:
balloon driver can be detected in device manager when changing pci addr. 

Additional info:
when changing the pci addr of other device driver, such as blok driver,net driver and so on, these drivers can be detected in device manager

Comment 1 Mike Cao 2011-12-01 05:43:16 UTC
winxp also hit the same issue.

steps.
1.start guest with -device virtio-balloon-pci,id=balloon0,addr=0x5
2.(qemu)device_del balloon0
3.(qemu)device_add -device virtio-balloon-pci,id=balloon0,addr=0x7

Comment 2 Mike Cao 2011-12-01 05:47:42 UTC
(In reply to comment #0)
> Description of problem:
> balloon driver is firstly installed in windows guest and works well. But when i
> boot the guest by changed pci addr, balloon driver can't be detected.
> 
> Version-Release number of selected component (if applicable):
> # uname -r
> 2.6.32-220.el6.x86_64
> # rpm -qa | grep qemu-kvm
> qemu-kvm-0.12.1.2-2.210.el6.x86_64
> 
virito-win version:
virtio-win-prewhql-0.1.19

Comment 3 Xiaomei Gao 2011-12-01 05:58:52 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Description of problem:
> > balloon driver is firstly installed in windows guest and works well. But when i
> > boot the guest by changed pci addr, balloon driver can't be detected.
> > 
> > Version-Release number of selected component (if applicable):
> > # uname -r
> > 2.6.32-220.el6.x86_64
> > # rpm -qa | grep qemu-kvm
> > qemu-kvm-0.12.1.2-2.210.el6.x86_64
> > 
> virito-win version:
> virtio-win-prewhql-0.1.19

guest version :
win2008-32

Comment 4 Vadim Rozenfeld 2011-12-01 15:45:38 UTC
Please try the MS signed drivers. 
It should work.

Best,
Vadim.

Comment 5 Xiaomei Gao 2011-12-08 02:48:45 UTC
(In reply to comment #4)
> Please try the MS signed drivers. 
> It should work.
> 
> Best,
> Vadim.

Indeed, it works well after changing MS signed drivers.

Best 
Xiaomei Gao

Comment 6 Mike Cao 2011-12-08 02:53:57 UTC
Based on comment #4 and comment #5 ,close as notabug