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

Re: [PATCH] VT-d: Tylersburg errata apply to further steppings


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 18 Aug 2021 12:32:20 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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-SenderADCheck; bh=/zKdjQDHuBkmeGYVEs8zbZhM/WwCx7y/IQH6PoO0oVE=; b=IRj5fYzzDX0VMITB4TMFzCh7sGpZMrVtEc90PouAdSblji6ZkMA2fvrTC7eR0fUpQVsvWGFpj49Fx9/IRyXjMDhGdrU9Htb9MVojmdtg1sihITcLGC3PfMWu7AQBNUt9bg2I/3qG+M1FexrGX8hxi7R4dObe2CP26adFuFo/c0P0PkRiQVosPZDWsUtqIWwak0LAlrdcw/o4I1oRWJfUZ6DQcDtWLoIJCeez60+vMx3riuVdQhTvGvYZu0VoiIn/ukF6iaMbW/o3KZ2Pd9vt+izdQVA4C2rBQiDuIhXbBYCnAuSehuD/BcQpkyW1+8WWXelp5bEqlNT5YKbXqz7LbA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i5qahST/jR0/AtXUJNeLz3je/hNvBAaZsfbDilDEQRyPStsxQlQFksg7AL9xWNuq17b6YC1eYwDH+s1XjbBESeA6h6tsjqTt26COYf9DzAlVcSayVlRiZJTZnzmiCULYSevwW0s/Q7eWhfcoHLD9PlZGkk2DAkVr8Fxjhxm339rvy1ENyez7aquoH2sUR+nroBryn+ujlttHODqDHLQnZ0Cy6xOj2wv9KKnaPFTxw29pZ8v8WdX39xpvJvFKXjZvcEsUu+AffF701TZTMUhjMKaoULA5sqftlIp6cmHgiBVkyWt1lJ9zteH2tUZ/ilcQ/4SK2kkIULDcmilmWPdc7Q==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Kevin Tian <kevin.tian@xxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 18 Aug 2021 11:32:32 +0000
  • Ironport-hdrordr: A9a23:zYLs+aG+9HZMRdcHpLqFxpLXdLJyesId70hD6qkvc20pTiXIrb HVoB1E726OtN9IYgBqpTnhAsW9qXO1z+8H3WBjB8bpYOCGghr2EGgG1+GSvwEIdBeOgdK1uZ 0QApSWTeeARWSS7vyKvjVQcexQtuVvmZrA7YquqAYKPHkaFNAf0+46MHfTLqQffmJ77PECZe ihD7981k6dkAMsH7GG7xc+Lpj+T1ShruOeXfaJbyRJmSOzZe/B0s/QL/CKtS1xbxp/hZMZtU TVmQ3w4auu99uhzAXH6mPV55NK3PP819pqHqW3+5goAwSprjztSJVqWrWEsjxwivqo8kwWnN 7FpAplF9hv6knWYnq+rXLWqlrdOXcVmi3fIG2j8C/eSP/CNWUH4g169NRkmy7imh8dVRdHoY t2NiyixrJq5Fj77WnADpDzJl1XfkjemxsfeLko70C3F7FuOYO49eYkjSBo+JBqJlOZ1Ggge9 Meaf014J1tADenRnjHvnZmytmlRG4yEReNSlUDvMv96UkWoJh0onFoivA3jzMJ65IjQ5NA7/ 7fMqtpnrlSTskQBJgNS9spUI+5DHfATgnLN3/XKVP7FLsfM3aIsJLv5q4pjdvaI6Dg4aFCwa gpamko7VLaunieTPGmzdlO6FTAUW+9VTPixoVX4IV4oKT1QP7uPTeYQF4jnsO8q7FHa/erBs qbKdZTGbvuPGHuEYFG00n3XIRTM2AXVIkQtswgU1yDr8rXIsnht/DdcvzUOL3xeAxUAF/XEz 8GRnz+Nc9A5kekVjvxhwXQQWrkfgjl8Zd5AMHhjq4uIUg2R8pxWy0u+AiED+2wWH5/W50NDQ 9Dyenc4+OGTEGNjCT101k=
  • Ironport-sdr: OwSaMcOZ12dbJ4NrNhn/OWGFFKaN6CJvDdpMTAnHC0PRAnHTSTY6YvNnivZKDXDby6oYFSDvz1 /UpdZftj5GJJapqoavWCzYhVfB8C+gi7Pph0swT/44dCcSCHrzWPdSkpie7YZue4F6goqqQp8h 2vPBODkNaeOzWt9DcelkaZYOAkExQA/AccCB1leJTcl0w6Ccn0RmuOrs2XN8zbmr03BgzWM/pD b9wM6VrJL8/upenTmXhYT+wIH0qCLwvLxMnp7g4UYg3GWEr2H3rzxjKwH6SMI4YkJX+dmaAda8 CX300HZD1aiO23YsorNAitt1
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 03/08/2021 12:13, Jan Beulich wrote:
> While for 5500 and 5520 chipsets only B3 and C2 are mentioned in the
> spec update, X58's also mentions B2, and searching the internet suggests
> systems with this stepping are actually in use. Even worse, for X58
> erratum #69 is marked applicable even to C2. Split the check to cover
> all applicable steppings and to also report applicable errata numbers in
> the log message. The splitting requires using the DMI port instead of
> the System Management Registers device, but that's then in line (also
> revision checking wise) with the spec updates.
>
> Fixes: 6890cebc6a98 ("VT-d: deal with 5500/5520/X58 errata")
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> As to disabling just interrupt remapping (as the initial version of the
> original patch did) vs disabling the IOMMU as a whole: Using a less
> heavy workaround would of course be desirable, but then we need to
> ensure not to misguide the tool stack about the state of the system.

This reasoning is buggy.

This errata is very specifically to do with interrupt remapping only. 
Disabling the whole IOMMU in response is inappropriate.

> It uses the PHYSCAP_directio sysctl output to determine whether PCI pass-
> through can be made use of, yet that flag is driven by "iommu_enabled"
> alone, without regard to the setting of "iommu_intremap".

The fact that range of hardware, including Tylersburg, don't have
interrupt remapping, and noone plumbed this nicely to the toolstack is
suboptimal.

But it is wholly inappropriate to punish users with Tylersburg hardware
because you don't like the fact that the toolstack can't see when
interrupt remapping is off.  The two issues are entirely orthogonal.

Tylersburg (taking this erratum into account) works just as well as and
securely as several previous generations of hardware, and should behave
the same.

~Andrew




 


Rackspace

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