From: Ian Campbell Subject: Re: [RFC 12/19] xen/passthrough: iommu_deassign_device_dt: By default reassign device to nobody Date: Thu, 3 Jul 2014 13:53:57 +0100 Message-ID: <1404392037.19893.6.camel@kazak.uk.xensource.com> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> <1402935486-29136-13-git-send-email-julien.grall@linaro.org> <1404388132.17859.27.camel@kazak.uk.xensource.com> <53B5478D.8070107@linaro.org> 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 1X2gWX-0006yJ-OQ for xen-devel@lists.xenproject.org; Thu, 03 Jul 2014 12:54:05 +0000 In-Reply-To: <53B5478D.8070107@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-03 at 13:07 +0100, Julien Grall wrote: > >> If Xen reassigns the device to "nobody", it may receive some global/context > >> fault because the transaction has failed (indeed the context has been > >> marked invalid). > > > > Can you describe here what happen in this case (I presume Xen tears down > > the iommu to quiesce them somehow?) > > The SMMU drivers will mark the different Context Bank, S2CR, SMR as > invalid. If the device is attempt to access the memory then, we will > receive an interrupt in Xen. > > Actually it's only happen once, if the device is still enabled when the > domain is shutdown. My concern was with getting a storm of such interrupts after this point. If it only happens once and any subsequent ones are damped by some means then great. Ian.