From: "Jan Beulich" Subject: Re: [PATCH 2/5] IOMMU: make page table deallocation preemptible Date: Fri, 13 Dec 2013 09:55:25 +0000 Message-ID: <52AAE79D020000780010CE76@nat28.tlf.novell.com> References: <52A744B7020000780010BEF1@nat28.tlf.novell.com> <52A7456A020000780010BF23@nat28.tlf.novell.com> <52A8B683.4050705@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VrPSy-00025c-SQ for xen-devel@lists.xenproject.org; Fri, 13 Dec 2013 09:55:28 +0000 In-Reply-To: <52A8B683.4050705@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: George Dunlap , xen-devel , Keir Fraser , xiantao.zhang@intel.com, suravee.suthikulpanit@amd.com List-Id: xen-devel@lists.xenproject.org >>> On 11.12.13 at 20:01, Andrew Cooper wrote: > On 10/12/2013 15:46, Jan Beulich wrote: >> This too can take an arbitrary amount of time. >> >> In fact, the bulk of the work is being moved to a tasklet, as handling >> the necessary preemption logic in line seems close to impossible given >> that the teardown may also be invoked on error paths. >> >> Signed-off-by: Jan Beulich > > There is a lot of duplicated code here. I would suggest making most of > this infrastructure common, and having a new iommu_op for "void > free_io_page_table(struct page_info*);" I guess that could be done - let me see how this works out. Jan