[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] PCI pass through issue

  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Zhiqiang Huang" <hzqtc@xxxxxxxxxxx>
  • Date: Tue, 19 Apr 2011 12:30:04 +0800
  • Delivery-date: Mon, 18 Apr 2011 22:47:25 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acv+SAv/qz+aLLq8S7WD2yXYFZcEJw==

Hi, all


I’m trying SRIOV with Xen but failed to pass through virtual function of SRIOV to dom-U.

My platform:

Xen-unstable 4.2

Pvops Dom-0 kernel

CentOS 5.4 Dom-0

CentOS 5.4 HVM Dom-U


And follow VtdHowto wiki page, my steps are:

First, bind the virtual function to pci-stub. After that, check the assignable virtual function devices:

[root@localhost ~]# xm pci-list-assignable-devices




Next, attach virtual function to dom-U using device hot-plug:

[root@localhost ~]# xm pci-attach VM2 07:10.0

Error: Timed out waiting for device model action

Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func> [virtual slot]


Insert a new pass-through pci device.


And get different error message when repeating the command:

[root@localhost ~]# xm pci-attach VM2 07:10.0

Error: Failed to assign device to IOMMU (0000:07:10.0@100,msitranslate=1,power_mgmt=0)

Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func> [virtual slot]


Insert a new pass-through pci device.


And I notice the ‘xm dmesg’ contains the following lines:

(XEN) Intel VT-d Snoop Control enabled.

(XEN) Intel VT-d Dom0 DMA Passthrough not enabled.

(XEN) Intel VT-d Queued Invalidation enabled.

(XEN) Intel VT-d Interrupt Remapping enabled.

(XEN) I/O virtualisation enabled


Can anyone help me with this issue? The HVM config file and dom-0 kernel config file are in the attachments. Check them out. J




Attachment: config
Description: Binary data

Attachment: VM_NEW.hvm
Description: Binary data

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.