Description of problem: can reattach pci device to host while it is using by guest Version-Release number of selected component (if applicable): - kernel-xen-2.6.18-192.el5.x86_64.rpm - xen-3.0.3-105.el5.x86_64.rpm - xen-libs-3.0.3-105.el5.i386.rpm - libvirt-0.6.3-33.el5.x86_64.rpm How reproducible: 100% Steps to Reproduce: 1. Detach VF/PF pci device from host, # virsh nodedev-dettach pci_8086_10ca 2. Hotplug VF/PF pci device to running guest # virsh attach-device <guestname> <VF/PF>.xml 3. In guest, could see the VF/PF by #lspci 4. on host, # virsh nodedev-reattach pci_8086_10ca # vish nodedev-reset pci_8086_10ca Actual results: reattach and reset pass Expected results: reset should fail and pops up a dialog saying 'cannot reset active deivce' Additional info: This bug cannot be reproduced on kvm system
Fixed in libvirt-0.8.2-1.el5
Back to POST until this patch is included (it missed 0.8.2-4.el5): http://post-office.corp.redhat.com/archives/rhvirt-patches/2010-September/msg00296.html
Fix built in libvirt-0.8.2-5.el5
Re-test this bug with libvirt-0.8.2-7.el5 on RHEL5u6 Server X86_64 Xen, but failed. kernel-xen-2.6.18-227.el5 xen-libs-3.0.3-117.el5 xen-3.0.3-117.el5 libvirt-0.8.2-7.el5 1. Enable vt-d for xen kernel add "iommu=1" to kernel line 2. Start a guest, and load acpiphp module in guest. 3. Detach pci NIC device from host # virsh nodedev-dettach pci_8086_10de # virsh nodedev-reset pci_8086_10de 4.Hotplug the pci device to running guest # cat pci-device.xml <hostdev mode='subsystem' type='pci'> <source> <address domain='0x0000' bus='0x00' slot='0x19' function='0x0'/> </source> </hostdev> #virsh attach-device <guestname> pci-device.xml 5. On host, try to re-attach the device to host when the device is using # virsh nodedev-reattach pci_8086_10de Then host will reboot
*** Bug 646749 has been marked as a duplicate of this bug. ***
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release.