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

Re: [PATCH for-4.16] x86/cpuid: do not shrink number of leaves in max policies


  • To: Andrew Cooper <amc96@xxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 25 Nov 2021 09:47:21 +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=yieLgbpLcphkx9D7zzbkkXrvstemAwwTYyXwszM4ozk=; b=kKZUalNFyUCgmXTFUwDLnLQA7yU7551lU7S3lnDmTUCW6wSr0TsYcXS8SRWXNiT/D4IGA6Y/qsU344i2iuS39yX4sSjWuCa0g12S5P8wOonVTsELwWbnUSNbCneuN+VrClmHOozeJrAfCve81Liy0RGD8ZX+14F4CzNfbcM/ZYIfQHisY4BfPCIaWEx3w4YFVyrmmlClAK32pi5bHaQPD5NOQaJgr/zSx+imEDMn4z7EDQeZj4+baXv65IByvMxbryq3dBECfaCcKJxAucuCuVXE5/xPDcYrNi8LdWOz3018XqyWdY6EC8PwP9N8Yf6Ylo7VkrEZ4ASXhId6hEirQw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UN2QDgGEcfmxM9iLIvZptUMBbsQDEMnBmrGmZVdkkdYHuD0f1DTkeiU0JLkVGVlzfmflc3KLq9/Jfp3Q/dU7gs5YQFnO1mcMKvBUN57rFk2xCpH8tcEL92zh1ybSlWfO/Uv1CSXuCQR7Mn6UCT/NfRCZCnxf99/Jbay7FsvedFIBixNt6oJq4uWcxkcAT3NKEwBc3V65/J5id92Sb91JBeT53c3DKVyYcZKg29n883bcx1/omOoCvM1m/NaJs0YpDjcgCDXxvR9vVZW6r61NMJG5yUV129Ke6HQvskbU/dHnBwlqrm5j63rneWEP34xMGFSNkdg6snQgK0IZtUlKKA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 25 Nov 2021 08:47:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24.11.2021 19:47, Andrew Cooper wrote:
> Real hardware behaviour does not trim max leaf when certain features are
> turned off, and will report blocks of trailing zeros.

I question that, but I'm also unaware of a specific case where feature
disabling (presumably in the BIOS) would lead to a trailing unpopulated
leaf.

> None of the software manuals permit any inference based on max leaf,
> which is why the 4.15 behaviour has been fine for the lifetime of Xen so
> far.

Yet the behavior with AMX (or KeyLocker) becomes quite odd: VMs would
see lots of trailing empty leaves by default on hardware supporting
these, as soon as we have (opt-in) support for them. That's because of
the large gap of leaves we're not making use of just yet.

The manual not permitting inference doesn't mean people can't infer
things. Whether they can do any bad from this (most likely just to
themselves) is unclear in the general case.

To be clear - this isn't an objection to the proposed revert. But the
aspect wants addressing imo, and not only in many years time, nor by
simply continuing to ignore the AMX work which I did submit over half
a year ago. (I didn't even dare to submit the partial KeyLocker work
I've done, both for this reason and for it being just partial work.)

Jan




 


Rackspace

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