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

Re: [PATCH] x86/IOMMU: mark IOMMU / intremap not in use when ACPI tables are missing


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 21 Oct 2021 09:37:23 +0200
  • 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=0gEpTw3//89MXNDe64M3tf+KTQ7BkEXPlF92RZax728=; b=KPvvDpT/L3pKaYlo0Rw6XQhkNcLv8X5rm7D+NSqiQpAAAPRBb2COwJ9uXK/NZPzDfiNBQfSo8fT6Kb+mhnHDVdQXogisFIp1Nz9d1m22wJzOUhI65Y/bGVTmSubzL9VLGRHRocFAG+gexULBNfrv+28Rf+LG5yC6kpvDkzWR3NbToMv/uwhHZIY2EvwMdn8AMzPiodnOOjI1NBVPCZM+hjoafVNhIozUduyGIfp5tks1Mv1Zylib22N1Kb7cGVU3fOkgnu6Z7RSk15CKeCt5WIKTe3Bu+XH1WWyWRODHdszWDHtS9LXEgaGHp6AMCfUOdTH8nJvh60fP4GEdPq52AQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VUcEP8TT0Q1ynyvnpA4BGMQu61yVQwAQHiw/zLn38YSoNU5czz0oOZEBo2gq+kBNp9G91g3A38jpw082PKFGWmeiBMZyzEy9T4KQ2aPF28wzfpLYs89Ibb4Hl81/x2XosrOhGINV0t480aatdlpawRiz/yY3HkR4qCxhNGwoptcR77QtKXyyPSI8/P18aPOgxIfyqPEZr4BRL98+YdLYJjyf40NvE4uT9YofCyZkSFjs+QohYng/SnXombzyd3r0yqTpH4itSqqqZrKsvMUU5zB0pNhw258VE6ZpPo7s6GU5iHFdv8olE1VNjdGRteMox5JXoQcq+TFj2FEcAJRYJw==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; 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>
  • Delivery-date: Thu, 21 Oct 2021 07:37:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.10.2021 09:21, Jan Beulich wrote:
> On 20.10.2021 22:01, Andrew Cooper wrote:
>> However, I don't think skipping parsing is a sensible move.  Intremap is
>> utterly mandatory if during boot, we discover that our APIC ID is >254,
>> and iommu=no-intremap must be ignored in this case, or if the MADT says
>> we have CPUs beyond that limit and the user hasn't specified nr_cpus=1
>> or equivalent.
> 
> Reading this made me realize that the change breaks other behavior.
> The conditional really needs to be iommu_enable || iommu_intremap -
> at least AMD code added in support for x2APIC already treats the
> latter to not be a sub-option of the former (iov_supports_xt(),
> acpi_ivrs_init()), and e.g. intel_iommu_supports_eim() also checks
> the latter alone.

Actually the check in iov_supports_xt() is wrong - it needs to use
&&, not ||. I'll make a 2nd patch ...

Jan




 


Rackspace

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