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

Re: [PATCH v2 0/3][4.16] x86/IOMMU: enabled / intremap handling


  • To: Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 3 Nov 2021 12:01:49 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=0HVm1SDKyFermP+v37lZ/FDpUt2eEuCLTA6qXdb+7gw=; b=iHhbdWdoTM5CJQhNI5teEONRDhDxr2y7jf7miDZ2DUgdzWPxHE7jEw+cIyU2QfFO1BZSaY8CihDqjkWGfD+XudhPECfYIDCjsOVESF+909guvJqO9TKt9NAw2hCUFgG2Qah/O1sDbRm2P75yKo/EJM5A2qyoEzm2b62UqE/t3TIR0MhfP4vT+6OzsyI/xdFm0oM0nO5dm5EZ+9gk6mr5keERdFpVSazs4Cipgc54GWSr5F7jHp16C6XAgryAbcnEnhoyoqJCWk7pgVQCCqy+2MHNRyVlC8FZOY7SvAFU2OAMQgyXBNydD2tkRpWPTqkdiut8U5RocWjTnMSpws/oMw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RUU2GrW3Ri1fnE/gQ3syjp6YSNPrOMmMOhkmKIdY1xTYxOm4ifySmK79dP6LKvF/BltGglIAFJDGPHHXCXZcmtEbZunVpsTsljP4QAHOrTo8edW2IT/rjeD2boLuELUhhLvBlyPkfXcAV+n9eDywOz8OWCIH/n5m30bNUO/9Xn3igA8mmOZUoVt7hNbugYwh6O5xebiEj8cPxfgIjiizrkgssjyCDN7mVh/IcaW/CtWff91yEruHJtyz+5x2SxZQowpvkRlYI4FNygRWhnhso0jzEAfksRHvrTWc+ajTE/nQn7gbLWKZjRpx8Uwymy4xFN2xnmcUk2b2dsJbRV/wdA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Wed, 03 Nov 2021 11:01:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 02.11.2021 11:17, Jan Beulich wrote:
> On 21.10.2021 11:57, Jan Beulich wrote:
>> In the course of reading the response to v1 (patch 1 only) I realized
>> that not only that patch needs further adjustment, but that also
>> further changes are needed (and there's likely yet more amiss).
>>
>> 1: x86/IOMMU: mark IOMMU / intremap not in use when ACPI tables are missing
>> 2: x86/APIC: avoid iommu_supports_x2apic() on error path
>> 3: AMD/IOMMU: iommu_enable vs iommu_intremap
> 
> Ian, while we further discuss / refine patch 3, the first two have the
> needed R-b, but will now need you release-ack aiui.

Seeing your reply on IRC, here an attempt at a release justification
(the patches were ready by Oct 29, but no-one cared to commit them
in my absence, so I thought I'd get away without such a write-up):

Patch 1 addresses a regression identified by Andrew. The main risk I
see here (which has turned up only very recently) is disagreement on
patch 3 which imo has an effect also on what patch 1 does, as to the
(non-)effects of "iommu=off" on the hypervisor command line. This,
however, is not an effect of the patch, but pre-existing behavior.
The behavioral change (in this regard) is in patch 3, which is still
under discussion.

Patch 2 corrects an (unlikely but not impossible to be taken) error
path, supposedly making systems functional again in case they would
in fact cause that error path to be taken. The risk looks low to me,
given that two function calls with previously assumed to be
identical results now get folded into one with the result latched.

Jan

> Andrew, did you perhaps have a chance to actually try v2 of patch 1? It
> works for me when suitably configuring the BIOS on my Skylake, so I
> wouldn't feel uncertain in committing without a Tested-by, but it would
> feel even better if I had one.
> 
> Thanks, Jan
> 




 


Rackspace

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