Bug 699324 - Can't assign host PCI devices to xenfv guest on xen hypervisor
Summary: Can't assign host PCI devices to xenfv guest on xen hypervisor
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.7
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-25 05:39 UTC by wangyimiao
Modified: 2011-08-15 20:05 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 20:05:42 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description wangyimiao 2011-04-25 05:39:07 UTC
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.

Comment 1 Alex Jia 2011-04-28 09:06:24 UTC
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

Comment 2 wangyimiao 2011-05-13 07:37:49 UTC
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

Comment 3 RHEL Program Management 2011-06-20 22:42:51 UTC
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.

Comment 5 RHEL Program Management 2011-08-15 20:05:42 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.