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

Re: [PATCH 1/6] x86/Kconfig: add selection of default x2APIC destination mode


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 23 Jun 2022 16:47:22 +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=W0xYgJsZj8PhxJorQckree2DX8wceOnDYAkphOBDn/4=; b=ZKt8aYcgr8YI9cRtntzLXOfDA38prAvtb6ulUoO20T8QxYxW6qDNvX0MIdZIkGdWKUymJJlmHf8qx170gqZpGPfWZwMUYoud46cc5EnlPgxO4MsaMimVFBCBo1SW5gO5Jpx0FepBUvS8kUIhZrlrOq8UNdtZkGVNTlh+ku9uoH/IHjmO87bX4qf8I3tju5/Inhx79Jz9pvBHEBqLBUVvyc/eNRLtPXLW3RDToVqBcsVlsTw5ybWn8DytSDCKTGAZWOqSvUmL5eccVhCpKdGOhfyKPmSMIdPm5aC1Suw2Umgq8P/ygJfAiyie43CHv+uJhLxpBZcdlv3N+Un+5aL7aw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IoFH3pZZ4lqrvF+OTrNy8mkkyh1a83NBcXBs+ZNN3W/urGN9xS6UmltavDXOxXVuCVY5NfcEPBtSoN0bF+Ep8l2krF16Dm6fO8ipT0jB8qoaPQhti6an3hNJ8H4Y0KgdNpW0oJPj4AXxtbralwqZ4E40mBjau6y9Ox+CamU9VDDjhpzfNxRlzzi3LVh2sp2frlgEXTZHbHKxXLCfM9ZN8yhKwVffxMRa4YiINq3e5Iv11MQlCOjbv+XpKPAg5iYtoYKu5AJornk70Jqj+QL5CiYuNC1SD3dSQCMUKbGSe8VJEttdsd0UKyQQyZIihbbXtdnDP0E6fHkIkDI7SB+3qQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 23 Jun 2022 14:47:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.06.2022 10:24, Roger Pau Monne wrote:
> Allow selecting the default x2APIC destination mode from Kconfig.
> Note the default destination mode is still Logical (Cluster) mode.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> ---
>  xen/arch/x86/Kconfig          | 29 +++++++++++++++++++++++++++++
>  xen/arch/x86/genapic/x2apic.c |  6 ++++--
>  2 files changed, 33 insertions(+), 2 deletions(-)
> 
> diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
> index 1e31edc99f..f560dc13f4 100644
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -226,6 +226,35 @@ config XEN_ALIGN_2M
>  
>  endchoice
>  
> +choice
> +     prompt "x2APIC default destination mode"

What's the point of using "choice" here, and not a single "bool"?

> +     default X2APIC_LOGICAL
> +     ---help---

Nit: Please don't use ---help--- anymore - we're trying to phase out its
use as Linux has dropped it altogether (and hence once we update our
Kconfig, we'd like to change as few places as possible), leaving just
"help".

One downside of "choice" (iirc) is that the individual sub-options' help
text is inaccessible from at least the command line version of kconfig.

> +       Specify default destination mode for x2APIC.
> +
> +       If unsure, choose "Logical".
> +
> +config X2APIC_LOGICAL
> +     bool "Logical mode"
> +     ---help---
> +       Use Logical Destination mode.
> +
> +       When using this mode APICs are addressed using the Logical
> +       Destination mode, which allows for optimized IPI sending,
> +       but also reduces the amount of vectors available for external
> +       interrupts when compared to physical mode.
> +
> +config X2APIC_PHYS

X2APIC_PHYSICAL (to be in line with X2APIC_LOGICAL)?

Jan



 


Rackspace

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