From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753664AbdJKJMc (ORCPT ); Wed, 11 Oct 2017 05:12:32 -0400 Received: from foss.arm.com ([217.140.101.70]:57014 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922AbdJKJMa (ORCPT ); Wed, 11 Oct 2017 05:12:30 -0400 Subject: Re: [PATCH v2 01/16] iommu: introduce bind_pasid_table API function To: Jacob Pan Cc: "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , David Woodhouse , Greg Kroah-Hartman , Rafael Wysocki , "Liu, Yi L" , Lan Tianyu , "Tian, Kevin" , Raj Ashok , Alex Williamson , Yi L References: <1507244624-39189-1-git-send-email-jacob.jun.pan@linux.intel.com> <1507244624-39189-2-git-send-email-jacob.jun.pan@linux.intel.com> <59945b24-ace9-f0c1-d68d-ccd929e1fe28@arm.com> <20171010144218.735d1f58@jacob-builder> From: Jean-Philippe Brucker Message-ID: Date: Wed, 11 Oct 2017 10:17:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20171010144218.735d1f58@jacob-builder> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/17 22:42, Jacob Pan wrote: [...] >>> +/** >>> + * PASID table data used to bind guest PASID table to the host >>> IOMMU. This will >>> + * enable guest managed first level page tables. >>> + * @version: for future extensions and identification of the data >>> format >>> + * @bytes: size of this structure >>> + * @base_ptr: PASID table pointer >>> + * @pasid_bits: number of bits supported in the guest PASID >>> table, must be less >>> + * or equal than the host table size. >> >> "host table size" is a bit confusing in this context, especially if >> using multi-level tables. Perhaps it's clear enough that @pasid_bits >> must be smaller or equal than the PASID size supported by the IOMMU, >> and we can remove that second part? >> > Not sure what is the second part? "must be less or equal than the host table size", is confusing to me when you're talking about max PASID bits Thanks, Jean