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

[PATCH] iommu: restrict stratch page quarantining to specific iommu drivers


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Fri, 25 Jul 2025 12:13:03 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=oQFT6kNxhRFiKy2zRosGrScIJ1a1OzkNWXsXAS5yuBQ=; b=p5NiG9W2ssfabL72OJg5XEF+x7dMqKA49oS2qLRUnrwKPaR6MKKDrvqQNomuSfIT0kFyDLVBtavkzu3U+Gu5IbkrG1msdpVLYU97BQgQUf1rG86AhFAhZ6VO0/BUmaa1bwBvJKQNawzAlE1zzZ1ugra9OqUsJJWFfxqOByAgKzT3kg8dSzFlYLAhVKq7XYgoiqlkY5IqsDeGlZaGV7uRgqRSPHJtMyOmg70P/3cYks/ER4nWQ29STafEqGvQsxypqcg5+p2TKGRbijATq8pDiasfqa1NFuHQXVoz7KELNJuZ9vgslyDVO8L0NHlNsFlHs08OdNqR0DprMQRx02pjEA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yjYTKI1a+tfMCc3GhAtz6vQlII+3PvsxcaBNyp5hGEnQGIbAtq7flFAVqVBcZa/mvWAfMzCr/Gcy7WngpVz3WxubGzvnXR6CTz8ru9puFUMg4ovQoJsRTAu4GV7/SiSNYrdLg0QJ4pCShSUjlRn45UFT0AYptxmyzedcpX7z/rJdoGMlsmcyEyAmB/DFl+ubNHlDz0iQQYz3LVQ8s92d9LaKCH8jvQtYlU4HVzVwAI8z+0tBJwkicR5GeUFEVLi8n2uBqp/QtsjBuex10AqKAOKGq8abacrwxA0pIQ6QOSLF6KBdmLLQ8QeZejpdIf7xTNaxYel67l8woWCNqn2dNg==
  • Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 25 Jul 2025 16:13:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Scratch page quarantining is tied to specific IOMMU implementations, not
architectures, so tie it to AMD_IOMMU and INTEL_IOMMU instead of X86.

Fixes: dd7e55a8848c ("iommu: restrict scratch page quarantining to x86")
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
 xen/drivers/passthrough/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig
index 11aece5f7bda..b413c33a4c7a 100644
--- a/xen/drivers/passthrough/Kconfig
+++ b/xen/drivers/passthrough/Kconfig
@@ -90,5 +90,5 @@ choice
                bool "basic"
        config IOMMU_QUARANTINE_SCRATCH_PAGE
                bool "scratch page"
-               depends on X86
+               depends on AMD_IOMMU || INTEL_IOMMU
 endchoice

base-commit: 6cd9b9226c65c962b0f0e040e7d3d5c4053f8e06
-- 
2.50.1




 


Rackspace

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