WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] vtd: do FLR before xc.domain_destroy()

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] vtd: do FLR before xc.domain_destroy()
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Tue, 26 Aug 2008 20:46:45 +0800
Cc:
Delivery-date: Tue, 26 Aug 2008 05:47:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckHV5pNtSDwn0X/RJWR7X0J314ulQAIDdPg
Thread-topic: [PATCH] vtd: do FLR before xc.domain_destroy()
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@xxxxxxxxx>

 

Attachment: fix_panic_wb.patch
Description: fix_panic_wb.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] vtd: do FLR before xc.domain_destroy(), Cui, Dexuan <=