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

Re: [PATCH 07/20] xen/arm: vIOMMU: Add cmdline boot option "viommu = <boolean>"


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Milan Djokic <milan_djokic@xxxxxxxx>
  • Date: Wed, 13 Aug 2025 12:30:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=sAOm1sdEPLj75mAAN7vkfs9Qhu9uQayDxLixvMBiA/8=; b=brzqW8A2o727ki7wfMbbkpbH0U6EaqND6UXiYa2OK67Gudu9Lszoixo3wfroifT9qpoUV9foZNmT40VZXWJypu/8MlsFnL5af78jbnCF9OMNY2guX1N780Cbo0+TEgK8VJMo7I4nnV9Qp2y7XEBYuyqQjjruhOEp88xag985x0cw+pi7O1fZxj/gpFdL2p0AxU08NbPoDI/FE8I8lOjeVOzqIaV7MmPSFZQfk5ogtH8g6YlHV3tO/DIJbWeMV1JqL0MJV8APhhIdl6kW2UELimyYsgfDI0x42JYTSjqVKB8pk6Dh3fuGNYmbazYcjD3OAl8221gMjx+Hbb9+/ECzLw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wIaQDp9IHuSB3iuAb6nlT68SscrM+rMWtQ7ENPA9FMcU5L4hMc4GV1vP+O2PbBRNk1PzdkFVTMDb0d1WcavUTYO1+o8ngDoQUJjF9aQo/ZBCxNVk2QwLR1ONs7wi/jzOac1BP+xbwqvPuRTc5I2DlTOJVy47AblRr2cw2DqAd5qiUFM10Pbl0T6UIh5edWDkkBU3hcNuYQ5PEImtdsZJlz0IfDiNlZEB35pSYuso6dIwRCAh++kEIF/wRIrkI27RJj0UjW6o/P1VNaeCJtyijoH4wmvCQShHfXJmaS/jwFafjQigIuXzKYEfoT9G8Rg3vUb0ouXeN2B1j9BNPnn+Hg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Rahul Singh <rahul.singh@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 13 Aug 2025 10:31:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello Jan,

On 8/8/25 08:20, Jan Beulich wrote:
On 07.08.2025 18:59, Milan Djokic wrote:
--- a/docs/misc/xen-command-line.pandoc
+++ b/docs/misc/xen-command-line.pandoc
@@ -2058,6 +2058,13 @@ This option can be specified more than once (up to 8 
times at present).
Flag to enable or disable support for PCI passthrough +### viommu (arm)
+> `= <boolean>`
+
+> Default: `false`
+
+Flag to enable or disable support for Virtual IOMMU for guests.

Isn't this too coarse-grained? IOW don't you want to specify the kind of IOMMU
to use, even if right now only one is being implemented? Also - why on the
command line? Isn't this rather a per-guest setting?

Yes, it would make more sense to specify IOMMU kind instead of plain enable/disable parameter. Updated in new patch series version. As for reasons to have this parameter in xen command line, it is needed for xen smmuv3 driver initialization, where viommu initialization is done if 'viommu' is enabled. Also, for dom0less mode and dom0 itself, viommu for domain is enabled while domain is created based on this argument. We do have per-guest viommu enablement option for guests created with xl, but this does not cover dom0 (and dom0-less).

  ### pcid (x86)
  > `= <boolean> | xpti=<bool>`

Also, seeing this adjacent entry, you're inserting in the wrong place. The
options are supposed to be alphabetically sorted.

We'll fix this in the new version with other suggested changes included.

Jan

BR,
Milan




 


Rackspace

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