From: Joerg Roedel Subject: Re: [PATCH 4/4] iommu: Add domain window handling functions Date: Mon, 4 Feb 2013 14:02:14 +0100 Message-ID: <20130204130214.GN25591@8bytes.org> References: <1359582228-21552-1-git-send-email-joro@8bytes.org> <1359582228-21552-5-git-send-email-joro@8bytes.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Sethi Varun-B16395 Cc: Wood Scott-B07421 , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Yoder Stuart-B08248 List-Id: iommu@lists.linux-foundation.org On Thu, Jan 31, 2013 at 09:32:26AM +0000, Sethi Varun-B16395 wrote: > We need a mechanism to determine the maximum number of subwindows supported by PAMU. How about representing it in the iommu_domain structure: > struct iommu_domain { > struct iommu_ops *ops; > void *priv; > iommu_fault_handler_t handler; > void *handler_token; > struct iommu_domain_geometry geometry; > u32 max_sub_windows; -----> maximum number of sub windows supported by the hardware. > } I`ll leave that flag to the private-data of the IOMMU domain. Instead I added a DOMAIN_ATTR_WINDOWS attribute to get/set the number of subwindows. I'll post the updated patch-set soon. Joerg