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

Re: [PATCH v2 2/2] x86/Kconfig: Introduce CONFIG_{AMD,INTEL} and conditionalise ucode


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 30 Oct 2023 09:40:40 +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=4G7FCbPDqWyLnbja5Rlo1osDqVeS5fDDq/yuIpn+tqk=; b=XNoPk0sz6Gfh7TIKC+lUNx6IIQYZGbaCL0gi1NbqJj7xAtyLrYGJHrUnDrY2/kQeEcZKC6dBsvlpSddJRA+9/g8fGzMNzbEi0Bt3PWi5ydUsSnOYaKGiMacQArb3lTN1lCJgSRuVY/k7dNTXXcp2CoSSxLQ52TW3L0XNfbt/Oi9A9t+lFmbCep9bagmaoPWm2h6376BYmoyzt/yIflBABn6geYLirJNpnEMZRGUgY5WZhJqb9HKXqbvd+PWFFpaxG6rUxlK1wctciu7LBZ8XBO/c0hXCNmfmpo1ocA3bglPGB4Eh9xOmSYunX6O1wEmemKG4PssdamR/gl8COaMVTg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lKHKtSsTcws83mTdyBJQT4tgMCxRkW7etIWB8QsV0rHgPWV0p92J3y3v21sNPEeBl2NS/3AHG+4QVvJpzwrS2aoEo1NFhYczdEKB1vKu6YDwegUik4g+HrjfHhA7Jj11HTNSlHbH01CktmXq3LGCWznT/sy//51MfT7OOQkpvppJbeAHzUBkclhCmw7jOkvQL2dNY8OTzxAGZOPxHo8ZOBBHxZYSsgUux1EXHLmueufVX2woGJP6dllep0OeSZDEnW91py71n+3uDQ3QPK6Dglfbi+mAyJ1bmPNWqlfIA2OAkxmzCTBInzsdHERcnaXIBbXy19C+49JuFFsX/QIUzw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>, Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 30 Oct 2023 08:40:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27.10.2023 21:18, Andrew Cooper wrote:
> On 27/10/2023 2:47 pm, Roger Pau Monné wrote:
>> On Fri, Oct 27, 2023 at 09:12:40AM +0200, Jan Beulich wrote:
>>> On 26.10.2023 22:55, Andrew Cooper wrote:
>>>> We eventually want to be able to build a stripped down Xen for a single
>>>> platform.  Make a start with CONFIG_{AMD,INTEL} (hidden behind EXPERT, but
>>>> available to randconfig), and adjust the microcode logic.
>>>>
>>>> No practical change.
>>>>
>>>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>>>> ---
>>>> CC: Jan Beulich <JBeulich@xxxxxxxx>
>>>> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
>>>> CC: Wei Liu <wl@xxxxxxx>
>>>> CC: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
>>>> CC: Stefano Stabellini <stefano.stabellini@xxxxxxx>
>>>> CC: Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>
>>>>
>>>> I've intentionally ignored the other vendors for now.  They can be put into
>>>> Kconfig by whomever figures out the actual dependencies between their init
>>>> routines.
>>>>
>>>> v2:
>>>>  * Tweak text
>>> What about the indentation issues mentioned in reply to v1?
>>>
>>> As to using un-amended AMD and INTEL - Roger, what's your view here?
>> I think it would be good to add a suffix, like we do for
>> {AMD,INTEL}_IOMMU options, and reserve the plain AMD and INTEL options
>> as platform/system level options that enable both VENDOR_{CPU,IOMMU}
>> sub options.
>>
>> So yes, {INTEL,AMD}_CPU seems a good option.
> 
> Really?  You do realise that, unlike the IOMMU names, this is going to
> be plastered all over the Makefiles and header files?
> 
> And it breaks the careful attempt not to use the ambigous term when
> describing what the symbol means.

I wonder what you mean here: Describing what the symbol means is all
done in plain text, i.e. independent of the symbol name.

> I'll send out a v2.5 so you can see it in context, but I'm going to say
> straight up - I think this is a mistake.

So in the longer run perhaps we want CONFIG_{AMD,INTEL} _and_
CONFIG_{AMD,INTEL}_CPU? The former mainly to control the defaults of
CONFIG_{AMD,INTEL}_{CPU,IOMMU} (could also be viewed as kind of a
shorthand)?

Jan



 


Rackspace

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