Skip to content

Comments

Clean up destruction of domains with PCI devices.#10

Merged
rossphilipson merged 2 commits intoOpenXT:masterfrom
ktemkin-archive:fix_pci_flr
Jul 31, 2015
Merged

Clean up destruction of domains with PCI devices.#10
rossphilipson merged 2 commits intoOpenXT:masterfrom
ktemkin-archive:fix_pci_flr

Conversation

@ktemkin
Copy link
Contributor

@ktemkin ktemkin commented Jul 30, 2015

This pull request makes two slight modifications to domain destruction:

  • PCI device resets ("FLRs") are deferred until all devices have
    been detached from the target domain. This enables resets to go
    through even for multi-function devices that require an SBR, as
    all of their functions will be released when the reset occurs.
  • Domain destruction is deferred until all of the PCI devices are
    detached. This cleans up a fair number of Xen error messages,
    and ensures that all PCI-tracking metadata is freed in the
    hypervisor. (Earlier, the domains were destroyed /before/ their
    devices were freed-- resulting in Xen losing its references to
    the PCI device data. The later request to free failed, as Xen
    didn't recognize the domid.)

Kyle J. Temkin added 2 commits July 30, 2015 16:44
This commit makes two slight modifications to domain destruction:
- PCI device resets ("FLRs") are deferred until all devices have
  been detached from the target domain. This enables resets to go
  through even for multi-function devices that require an SBR, as
  all of their functions will be released when the reset occurs.
- Domain destruction is deferred until all of the PCI devices are
  detached. This cleans up a fair number of Xen error messages,
  and ensures that all PCI-tracking metadata is freed in the
  hypervisor. (Earlier, the domains were destroyed /before/ their
  devices were freed-- resulting in Xen losing its references to
  the PCI device data. The later request to free failed, as Xen
  didn't recognize the domid.)

OXT-343
OXT-343

Signed-off-by: Kyle J. Temkin <temkink@ainfosec.com>
@rossphilipson
Copy link
Contributor

Tested, screen always properly blanked. Merging.

rossphilipson added a commit that referenced this pull request Jul 31, 2015
Clean up destruction of domains with PCI devices.
@rossphilipson rossphilipson merged commit ed8d011 into OpenXT:master Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants