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

[PATCH v2 5/6] x86/APIC: rename cmdline_apic


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 5 Nov 2021 13:35: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=jpgB95rPSSAEva6eQRre47O5y0IXJlpRfMop3oBtTjw=; b=X9g98COVJ+0Drr2P+8iBKGdhYrXSYZK2JncT9e/NK2fiAgRUHxFkg/MPhhZ2+FCL2kAS645Bk+sgsu6S/FQY8eI16Z5i7F5U4GW3fvp5oVJ82s8GqdssE+EHRXmo8YYg3iuCFoFFj0gLJhlc/TDhDzWYBPosVgPR7GbBnlbLl39fJE2QNbjPkuk/lDLOQTrt8zwE4QM7GrbipREn1luSxJP5aSVcLKBo3KJ81x4QwARkBjEUZ/kk/WXt4zUIgZBQBumSnXwSxei53oJ6t231PU95Xe4DPPdC7jARZlAxbcySX2mDyDF1XnTs8dVlVJ6mL8u9UYfOPKqimWUCivKWmQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OURxSrgnDpDhlt3I3/9o2pRy4GJ9mP8A7XVoTfx1rlglU52SGz5Et6h+VZlg+/VxjOsjZW2i5yuZ4C++BMyRupvT/BASEeQKo7GuDiM+jhgRTq2Av9LcxjM//a+DMbLZT3NdfJTeko28QRkFOotiq8smtgxN5JtwyW9sCaV83pcM9rDzgfyP0jIE7c3wNLlkXqv5SJLo7t6AjoqDcFLxb+i4ZYC4uJi3TdEkPNk7BMKdc0eaVVM6j38dSykneKbD7Fhnz4AftaA3wRavbkCI+MRfFG+FiHV3GHjT3+6RJ9pO/jbPYZH2nyT6i84OtEZrBv4naxAoSaCK6RLVHuWDKw==
  • 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>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 05 Nov 2021 12:35:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The name hasn't been appropriate for a long time: It covers not only
command line overrides, but also x2APIC pre-enabled state.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
v2: New.

--- a/xen/arch/x86/genapic/probe.c
+++ b/xen/arch/x86/genapic/probe.c
@@ -24,7 +24,7 @@ static const struct genapic *const __ini
        NULL,
 };
 
-static bool_t __initdata cmdline_apic;
+static bool __initdata forced_apic;
 
 void __init generic_bigsmp_probe(void)
 {
@@ -35,7 +35,7 @@ void __init generic_bigsmp_probe(void)
         * - we find more than 8 CPUs in acpi LAPIC listing with xAPIC support
         */
 
-       if (!cmdline_apic && genapic.name == apic_default.name)
+       if (!forced_apic && genapic.name == apic_default.name)
                if (apic_bigsmp.probe()) {
                        genapic = apic_bigsmp;
                        printk(KERN_INFO "Overriding APIC driver with %s\n",
@@ -65,7 +65,7 @@ void __init generic_apic_probe(void)
 
        check_x2apic_preenabled();
 
-       cmdline_apic = genapic.name;
+       forced_apic = genapic.name;
 
        for (i = 0; !genapic.name && apic_probe[i]; i++) {
                if (!apic_probe[i]->probe || apic_probe[i]->probe())




 


Rackspace

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