From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v3 08/13] xen/passthrough: iommu: Basic support of device tree assignment Date: Tue, 18 Mar 2014 19:46:30 +0000 Message-ID: <5328A296.8030301@linaro.org> References: <1394552999-14171-1-git-send-email-julien.grall@linaro.org> <1394552999-14171-9-git-send-email-julien.grall@linaro.org> <1395160425.11824.11.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPzy6-00046c-48 for xen-devel@lists.xenproject.org; Tue, 18 Mar 2014 19:46:34 +0000 Received: by mail-ee0-f48.google.com with SMTP id b57so5076448eek.21 for ; Tue, 18 Mar 2014 12:46:32 -0700 (PDT) In-Reply-To: <1395160425.11824.11.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Jan Beulich , tim@xen.org, Xiantao Zhang , stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 03/18/2014 04:33 PM, Ian Campbell wrote: > On Tue, 2014-03-11 at 15:49 +0000, Julien Grall wrote: >> Add IOMMU helpers to support device tree assignment/deassignment. This patch >> introduces 2 new fields in the dt_device_node: >> - is_protected: Does the device is protected by an IOMMU >> - next_assigned: Pointer to the next device assigned to the same >> domain > > Am I correct that this list is not maintained for dom0? The behaviour of > dt_assign_device and dt_deassign_device seems to rely on it? DOM0 will call dt_assign_device for every device protected by the IOMMU (see patch #9). So it will itself have a list maintained. Regards, -- Julien Grall