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

Re: [PATCH v2 2/6] x86/APIC: drop clustered_apic_check() hook


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 8 Nov 2021 12:17:01 +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=UnTsyXtqBrvvudnTvY4H3coqQxEjti55g3NbLHoyqbE=; b=K/49bagCLFSce/MfuLgfAGnrBMEqt20MDvUzTDWlwe2MKPRpc/QIfUZ5xElHGVQ68E/RffDYkYu1q3GiUOuIE0tb0qee9EblsZNLLfhZvtCmdySNBga2ASXnJEGrKGk/tK+CfJ3bB8ynirOrcjugmHLbeN8lQsdGj0Udlg0B/nZqZ0IEMrv8doOoTAr9MsjUD84G3yhJ+IUZBQWbU6pfet25H/3elY5TEJqXOe3L7M3IYHTnBL2JXS+Ew4Cw2NMVTaRu9u1s5jgY6JjI1AHkCvDp8cTVCpLdyZnTdZobNsrScjrcunl0jDk8x81kYHRevXcOdIc4EiyGcovJNtwATg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYm+ojqrLCvtbp3Q2jOvSxvsuWfoenh0hvSwu1JI/zsiW2ypSvPFoDjZiOo6jUvg3SeVdBluXPGxtJU+1VO1Xdx5pzTDL7nnDwe378foHmTacN6iWkc2pfvUIO+JsTEr0QBqlZ01jfcVNy6aUBLc1Zk3WWGIKxNALcQr2iQePg+gDosGE74Tf+qDAbF2UWKWwDU17fV/+1/GU6hvR4aJ5YPdzRGS17xSv/4AsXymPl1VYVlPkOHIr4ZIgYB5QIQsqlKaNMfCo/2llJ6D9YXJor5fpCUzY97rzzmrJGlp4cVAdLsocycHyQe1kJp1lYJWY6JuQCQFn3INlxss1NmsFg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 08 Nov 2021 11:17:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 08.11.2021 12:02, Roger Pau Monné wrote:
> On Fri, Nov 05, 2021 at 01:34:12PM +0100, Jan Beulich wrote:
>> The hook functions have been empty forever (x2APIC) or issuing merely a
>> printk() for a long time (xAPIC). Since that printk() is (a) generally
>> useful (i.e. also in the x2APIC case) and (b) would better only be
>> issued once the final APIC driver to use was determined, move (and
>> generalize) it into connect_bsp_APIC().
>>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks.

>> --- a/xen/arch/x86/apic.c
>> +++ b/xen/arch/x86/apic.c
>> @@ -243,6 +243,12 @@ void __init connect_bsp_APIC(void)
>>          outb(0x70, 0x22);
>>          outb(0x01, 0x23);
>>      }
>> +
>> +    printk("Enabling APIC mode:  %s.  Using %d I/O APICs\n",
> 
> I don't think it makes sense to prefix APIC with 'x' or 'x2' here, as
> we already print the APIC mode elsewhere?

I was indeed pondering that, and decided that the extra yet redundant
information wouldn't be worth the extra logic here (the more that
there's no good way to optionally print a single character, as sadly
%c does not print nothing when passed '\0', and I find single-char
string literals kind of ugly / wasteful). But I have no strong
opinion here, so if you think it would be better to add the extra
bits, I'll happily do so.

>> +           !INT_DEST_MODE ? "Physical"
>> +                          : init_apic_ldr == init_apic_ldr_flat ? "Flat"
>> +                                                                : 
>> "Clustered",
>> +           nr_ioapics);
>>      enable_apic_mode();
> 
> This also seem to be completely unneeded? I guess it would be cleaned
> in a further patch.

I have to admit I didn't even check. There's so much more cleanup to
do here ...

Jan




 


Rackspace

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