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

Re: [PATCH v3 4/5] x86: Read MSR_ARCH_CAPS immediately after early_microcode_init()


  • To: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 22 Jun 2023 17:20:25 +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=LCnTUxcpzelRvQ9J5ayRgVcl2p/zPivpbtNGU/ZjXQM=; b=Je35z1iYDrPIDQaGs+u8TOf23NvTPUn+VpkcLczzHhW/AEWUIHk0P/v9/d4nnnvG913vmFZvfV51LbpgivRDxAzbiVkBxvMn+AjbysEkbfjv8KiFWnr/NWvkaytH6fIGqRZ3DDI0zCpfV/U1H2jey36RUxl2S4I8VpbI0g/OUCA+VOI203jewoRCIMBKLwBtSg0y6lzEBViJ0RVDTzgMWilIjrSUZUDh1g+FzlTpP4ENeozK5osdtRq5+aHex6htTsUnabxhOiMySDSYFFh68qN6cVxQPIX4mC+sO9kiTKFa7P8Maw/SiRunNwxoek5eaL9oKxMsaZYwfodWcD3ExA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kL02SdWhzS0vuWL9Y6w7aNi3wIF+ZtajDiTyhEl1Poz9c/xPFlLBX8IY8cIg1syLAWl8UJKJqRpkGF6heaMtB4D9JtHiAGPcJ41suNq+mlY1cs0neagd+E8bSRQly3e9+1CjnSxq3Y7HGecGM9+m1DbuHaEDJfFfG9iVCQYSPLt4ivvjOEr5RmqlhjSNIdUF/B0B0w0viD+q568kky9FY3Fa1e5XBhTuFS5EWCYazy7P74iVZQQvgjzJDKIya915uo2OrYLQ6GW7CxGOhKmo4wAAMnc6ONbscICMpVCZFfWdXMoTFSImgyhLZ1GWpuaPuQzb/u0H25kS8HtY/touOw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 22 Jun 2023 15:20:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22.06.2023 16:55, Alejandro Vallejo wrote:
> On Mon, Jun 19, 2023 at 05:57:14PM +0200, Jan Beulich wrote:
>>> +    if ( boot_cpu_data.cpuid_level >= 7 )
>>> +        boot_cpu_data.x86_capability[FEATURESET_7d0]
>>> +            = cpuid_count_edx(7, 0);
>>
>> I take it we assume the maximum CPUID level won't go from below 7 to 7
>> or higher with the ucode update?
> Do you mean from >=7 to <7 instead? Otherwise it just works and I don't
> undertand the concern.

No, I mean going from <7 to >=7. In such a case the earlier
recorded .cpuid_level will prevent the leaf 7 read, and hence also
the possible discovery of ARCH_CAPS having appeared.

I actually wonder whether it wouldn't be better to re-run the whole
of early_cpu_init() from here again.

Jan



 


Rackspace

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