[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 04/21] xen/arm: vIOMMU: add generic vIOMMU framework


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Mon, 5 Dec 2022 13:30:14 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4GkHfrxH87sZ8/4b9usxtSJvpBKlyLSdkPXYRxGFzjk=; b=mITbDU9h5XEa8mBOcrxRPKnmn9F56Rhdj3Bc4OEm+L+E8hibk2zV2OvMRd7oSji4eLwJaPWXSoIsVcN+rk6e4xQkBEnaru1F013hdLd58kyx7mERMIaPd4+D4ogHztM+A8sSl2SrmgE6kA9go7Py8O26vgrHORr9l9PMsPXHOCD7m71FLEjIjzoAgDijSH/uf7Ukusir+VVkTxH6WN3wM4nZwVaB1UwoOmILmB7XMfZGXejGR1hZ7N0un8xaSvLcJBjUul9o3BG+UO60Nct6hdqbZVibT5gKKqy5TAuXuI7gr6cDhr36YLCi0Co+HFQ0ZOSegjZdcgQT1OS8lTw8Lw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h0A3naV/Di0fgDvtKpnapVUhv7rY3xoc4avJ2miSL8jB/BElfwn/3QUdRpyLVF+VI1UOcpOQFgCBtOyKCfDjoR6uCVv9nt6zkeWlitrQCSqvnlAhi0IiVo1HLgfZPuHl+3CjakmH2mGOEKkxr7CHXUpGAE3A3IzkLs+kwpJbQmSKP4Nde986VFBPAEcsHd6yDcPvHhMNiLTbDCShM1as3dgF1n6ZOZtxJDiXz7X34pQ8v6QS8a7oSCVKZdX88+sFVNJlwK+N7oevoWJEPJ496d+ElxQABp+588qstZHkhaZ1ZRbpJw4MggOjgbOCwdWbGHfsfoYJFSivq+N915+x+Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 05 Dec 2022 13:30:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHZBZ7dBYCbekoSiE+Vqn2CZKLLUK5aR8+AgAUIUAA=
  • Thread-topic: [RFC PATCH 04/21] xen/arm: vIOMMU: add generic vIOMMU framework

Hi Jan,

> On 2 Dec 2022, at 8:39 am, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 01.12.2022 17:02, Rahul Singh wrote:
>> --- a/xen/drivers/passthrough/Kconfig
>> +++ b/xen/drivers/passthrough/Kconfig
>> @@ -35,6 +35,12 @@ config IPMMU_VMSA
>>  (H3 ES3.0, M3-W+, etc) or Gen4 SoCs which IPMMU hardware supports stage 2
>>  translation table format and is able to use CPU's P2M table as is.
>> 
>> +config VIRTUAL_IOMMU
>> + bool "Virtual IOMMU Support (UNSUPPORTED)" if UNSUPPORTED
>> + default n
>> + help
>> + Support virtual IOMMU infrastructure to implement vIOMMU.
> 
> I simply "virtual" specific enough in the name? Seeing that there are
> multiple IOMMU flavors for Arm, and judging from the titles of subsequent
> patches, you're implementing a virtualized form of only one variant.

I agree with you I will remove the virtual in next version.
> 
> Also, nit: Please omit "default n" here - it leads to a needless
> line in the resulting .config, which in addition prevents the prompt
> from appearing for user selection when someone later enables
> UNSUPPORTED in their config and then runs e.g. "make oldconfig". But
> perhaps you anyway really mean
> 
> config VIRTUAL_IOMMU
> bool "Virtual IOMMU Support (UNSUPPORTED)"
> depends on UNSUPPORTED
> help
>  Support virtual IOMMU infrastructure to implement vIOMMU.
> 
> ?
> 
> Note (nit again) the slightly altered indentation I'm also using in
> the alternative suggestion.
> 

I will modify as below:

 config VIRTUAL_IOMMU
        bool "Virtual IOMMU Support (UNSUPPORTED)”
        depends on UNSUPPORTED
        help
          Support IOMMU infrastructure to implement different variants of 
virtual
          IOMMUs.

Regards,
Rahul


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.