mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
When we "xm destroy" a guest with assigned devices, in xen/common/domain.c:domain_kill(), we relinquish guest's memory first, then invoke domain_destroy() -> complete_domain_destroy() -> arch_domain_destroy() -> pci_release_devices()/iommu_domain_destroy(). Between relinquish_memory() and domain_destroy(), a device may be issuing DMA request and access guest's relinquished memory. We can do_FLR() to quiesce devices before xc.domain_destroy(). Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.