| Summary: | Can't assign host PCI devices to xenfv guest on xen hypervisor | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | wangyimiao <yimwang> |
| Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.7 | CC: | ajia, dallan, dyuan, llim, rwu, yoyzhang |
| 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-08-15 20:05:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
This is a common/normal PCI(including sr-iov) device assignment issue on xen hyperviosr:
# cat hostdev.xml
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address bus='0x0' slot='0x19' function='0x0'/>
</source>
</hostdev>
# virsh attach-device vr-rhel5u4-x86_64-xenfv hostdev.xml
error: Failed to attach device from hostdev.xml
error: Requested operation is not valid: Xm driver only supports modifying persistent config
That issue can be reproduce in rhel5.6 host. libvirt-0.8.2-15.el5 kernel-xen-2.6.18-238.el5 xen-3.0.3-120.el5 This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update. Contact your manager or support representative in case you need to escalate this bug. Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. |
Description of problem: Attach SR-IOV PF device to Xen Fully Virtualized domain failed with error "Requested operation is not valid: Xm driver only supports modifying persistent config". Version-Release number of selected component (if applicable): libvirt-0.8.2-17.el5 xen-3.0.3-127.el5 kernel-xen-2.6.18-252.el5 How reproducible: 5/5 Steps to Reproduce: 1. # lspci |grep 82576 2. Select one PF device # lspci -n | grep 03:00.0 3. # virsh nodedev-dumpxml pci_8086_10c9_0 4.Dettach and reset PF device. #virsh nodedev-dettach pci_8086_10c9_0 # virsh nodedev-reset pci_8086_10c9_0 5. Edit pf.xml <hostdev mode='subsystem' type='pci'> <source> <address bus='3' slot='0' function='0'/> </source> </hostdev> 6. if the guest is rhel5, execute the following command in guest before attach-device: # modprobe acpiphp # virsh attach-device pv5.7 pf.xml error: Failed to attach device from pf.xml error: Requested operation is not valid: Xm driver only supports modifying persistent config Actual results: Attach SR-IOV PF device to domain failed with error "Requested operation is not valid: Xm driver only supports modifying persistent config". Expected results: Attach should be successfully.