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

Re: [PATCH] iommu: restrict scratch page quarantining to x86


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Fri, 25 Jul 2025 11:58:00 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com 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=xP0sLEHwFxZYxPzPsqCdRWfZUXiMdttFoV/Qs+ynwX0=; b=gfZRXgNno8TIgUuHamgSblBAJFpsZAPLQOEB8uN3NcSx8BEd5n+xZaDRNMYPPDn+DyqcAZKBGXOohu1vEqvv7dRBhaJ1o8qTXLBiPYdeHjlTm0MnUN+F0rgNPJp7bA6xBiGie5BZPoVOQT7Ri/E3BAr4Y1CIrgh0Nf+nA6WMlkArESqpBA2Exu/HFQXpXsAI2FE2DvCi+Qw4DuLvlxM40kW8EnBBv9VaQi/yWuuEEc2TOx2WxEIMtAPP+r4vtDdbVJVfnA+kAyJWKePSI40LAGjdIIvJXaeBTIFoT1GaInl1ItnvOavRqMkk71WmloCR57iEj8VtD5srbkkeztxbbA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CP3CbeTyYp+akWDH6yoZx6ty3xh9Y10OYb88l/HbB5Fim/53/ya1RoLgQgqgBP4xE2GJ9eajswtI1hiA/EfrCBsPf2CMQrLWRHSpY5Ozlmo9OWN/JhNIKYuNzqytUltqnV7JL2zzjycNiotfZdVZGhWhGxqtUvg22EtYPo5hx6qJnE2zNW9kWYrakMVg0rg/TmQrmBv4XJxo+tS2fSYciOlxqjSqevL1UBvqGUVv3P3e7ZxKOSwZhvksJ1NNME/6cHIpFzlkPkClvSBhAPDvt8HCHFASFhAsEJVHeWFcGNt10grBvswHGbCBlPS79PjYPu88KOv/0N4MThEeWd5yLw==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • Delivery-date: Fri, 25 Jul 2025 15:58:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 7/25/25 04:01, Roger Pau Monné wrote:
> On Thu, Jul 24, 2025 at 01:43:48PM -0400, Stewart Hildebrand wrote:
>> All IOMMU_QUARANTINE_* options are exposed on Arm since 163c6b589879
>> ("xen/arm: pci: introduce PCI_PASSTHROUGH Kconfig option"). However,
>> only NONE and BASIC are implemented in any Arm iommu driver since
>> 63919fc4d1ca ("xen/arm: smmuv3: Add PCI devices support for SMMUv3") and
>> ca8f6ffeb6e3 ("xen/arm: smmuv2: Add PCI devices support for SMMUv2").
>> SCRATCH_PAGE is not yet implemented in any Arm iommu driver. Restrict
>> scratch page quarantining to x86 for now.
>>
>> Reported-by: Jan Beulich <jbeulich@xxxxxxxx>
>> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
>> ---
>> Cc'ing Arm maintainers to request an Arm ack.
>> ---
>>  xen/drivers/passthrough/Kconfig | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/xen/drivers/passthrough/Kconfig 
>> b/xen/drivers/passthrough/Kconfig
>> index 78edd805365e..11aece5f7bda 100644
>> --- a/xen/drivers/passthrough/Kconfig
>> +++ b/xen/drivers/passthrough/Kconfig
>> @@ -90,4 +90,5 @@ choice
>>              bool "basic"
>>      config IOMMU_QUARANTINE_SCRATCH_PAGE
>>              bool "scratch page"
>> +            depends on X86
> 
> Since this is tied to specific IOMMU implementations, could you please
> tie it to AMD_IOMMU and INTEL_IOMMU instead of X86?
> 
> depends on AMD_IOMMU || INTEL_IOMMU
> 
> Should do it I think?

Yes, that makes sense. Since the version with X86 was already committed,
I'll send the modification with a Fixes: tag.



 


Rackspace

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