Skip to content

XenAPI: Add PCI Assignment Support

Yosuke Iwamatsu xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3XenAPI: Add Physical PCI Device (PPCI) Supporttools/python/xen/util/pci.py tools/python/xen/xend/XendAPI.py tools/python/xen/xend/XendNode.py +1 more+334 -60 replies
2/3XenAPI: Add Direct PCI Assignment (DPCI) Supporttools/python/xen/xend/XendAPI.py tools/python/xen/xend/XendConfig.py tools/python/xen/xend/XendDPCI.py +4 more+435 -840 replies
3/3XenAPI: Example Scripts for PCI Assignment+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH][0/3] XenAPI: Add PCI Assignment Support

Hi all,

This series of patches is an attempt to support pci pass-through device assignment via xen-api.

There already is 'PCI_bus' parameter in VM class to specify pci device to be assigned, but it doesn't work now. Another problem is that pci device hotplug/coldplug cannot be supported with the current model.

So I decided to implement fully-functional pci assignment support to xen-api. Below is the basic design of new class models.

PPCI: Represents physical pci devices belonging to the host.
ppci instances are automatically generated by xend and contain domain:bus:slot:func number, vendor name, device name and other information.
DPCI: Represents direct pci devices. dpci instances work as connectors
between a vm and a physical pci device. Creation of a dpci device will result in attachment of the pci device and deletion will result in detachment.

+------------+ *      1 +----------+
|     VM     |----------|   host   |
+------------+          +----------+
    1 |                      | 1
      |                      |
    * |                      | *
+-------------+ 0,1   1 +----------+
|    DPCI     |---------|   PPCI   |
+-------------+         +----------+

BTW I'm aware that there is xen-api community project going on. If there's any decision made about discussing/merging procedure of xen-api related patches, please let me know.
Technical suggestions and comments are welcome, of course.

Regards,
-----------------------
Yosuke Iwamatsu
NEC Corporation