xen-org/xen-api — pull request #578 by djs55 (2012-05-04 13:46:52+00:00)
Title: CA-77758: fix PCI passthrough and reboot

On reboot we:
1. execute the operation PCI_unplug which
1.1 signals qemu to perform a hot-unplug, only if qemu is still running
1.2 performs an FLR
1.3 deassigns the device

This makes the VIF,VBD,PCI plug/unplug code all look the same from the high level (good!)

This also solves the old issue where we don't perform an FLR and hence leave the card in some activated state, after a VM shuts down.

We also change how the RBAC control of the other-config:pci field is handled, making it the same as the existing other-config:folders logic, which also avoids confusing the xapi/xenopsd syncing logic.