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

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


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 26 Oct 2023 13:35:59 +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=CnuCnFYrID+nm5Gr1MKRMGLOEdQ4wkVNVMIMwRNyRM0=; b=H9xg7g3FQ13zHgs/qVMeHInHjRMD3M8Tv1mLauijpZYZOBwjP2bITpOo9U1ghdgLm58rUJbeyfExcXctaAeiBctt/sSvTo/aK/lySZ9IStvl4g/+hU2fO/usKKnDU9zf3RtsIUfeXXOLNSI2UhQCX8cVxZzzdgtT4h7Xf9r2TAJl0Cyc3a1jqNadbys2Qh1UHg8GvLuz644f3C5pF2YgtEUd4WIiiQRLc6tu3k6xgIgy12Zet92aXYFuBl19hdUy4HkV6aPXGKMSVAj2azC7jZDSbAL6S+6bA2GIdpNj94kAbDYwSpt4napJt6EnPrDUHS1VmNsZXsQ7an0SrSd0Qw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D52EH55JffuXmQOuTtvwRWlt1krRQSJfMqnPO1571AvvQvUA68LKqF8NNn32Ya7GvMkKVr5A7mvxSAHfF+gYzMI7pmwyHgAaRWxqtItVOLcTugcvmXfAoNoGJROvg26SyACKYMaNZPWycDZWUHy8yNlUzzL5UweB0Pfg3M0o6o326SqzcKCWcwQIh0+3vNEZE2z4isQKZRa17nnve3wS0shgD2euw6cBGtW5I/B1e2XxpxSrA/Bb3CMGyuVtNYTVvC90i0vAKTPEySdiXncINhr5tnIfmTH3POf6AzCv6rH/XQQw7mhfUuH9o/3mIIbLLkznXUTVZiRoQlJwTMZLRg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>, Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 26 Oct 2023 11:36:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 26.10.2023 13:10, Andrew Cooper wrote:
> On 26/10/2023 8:55 am, Jan Beulich wrote:
>> On 25.10.2023 20:06, 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.
>> Linux uses different names for the Kconfig symbols. While I'm unconvinced
>> of the SUP part, I wonder whether we wouldn't better use CPU in the names.
> 
> I don't see what that gets us, other than a longer name.

Just to mention the (I think) obvious - on the IOMMU side we already have
AMD_IOMMU and INTEL_IOMMU. It would be odd to have just AMD and INTEL here,
yet then ...

>> One immediate question here is how the IOMMU interaction is intended to
>> end up: Do we want to permit either vendor's CPUs with the other vendor's
>> IOMMUs to be usable?
> 
> From a randconfig point of view, yes.  These options are only targetting
> a specific platform, and we can absolutely make that the end user's
> responsibility to describe their platform correctly.

... <vendor>_IOMMU not depending on <vendor>. Whereas the lack of a
dependency on <vendor>_CPU would be quite natural, imo.

> The more interesting question is perhaps VT-x and SVM, given that VIA
> have shipped VT-x and Hygon have shipped SVM and AMD-Vi.
> 
> I do specifically want to to integrate the HVM setup better with CPU
> init - KVM dropped an enormous amount of complexity by doing this - but
> I expect we'll end up with VTX and SVM options rather than using
> INTEL/AMD for this.

I'd certainly prefer us using VTX/SVM (and those then having dependencies
on the main || niche vendors), with the caveat that SVM also has had a
meaning for Intel for quite some time, iirc.

Jan



 


Rackspace

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