From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E35B6C001DE for ; Mon, 31 Jul 2023 12:50:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbjGaMuM (ORCPT ); Mon, 31 Jul 2023 08:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbjGaMuL (ORCPT ); Mon, 31 Jul 2023 08:50:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA90DB8 for ; Mon, 31 Jul 2023 05:50:09 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690807807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mkGvdOI2kct1CFJlcjLcLX0x3m4VxYwGOMwYMRRKML0=; b=MSiAQhLjV7dYGf+ex9yAJNh+x2kWqhJy5CHN/Ho3GmBrukYvgYCYMnoxvfqTn1FsShSume 3Pj26PB24axJtLZOz7BLm++o8s9XIfJ+DfCooPA0F9wILYWMtUXtUad8DJS0np0fcaLgRH mhg5Z+Lb/7/U+jTY2CotsdXVRCfvqu66I/fpD4/CCOYZXvqBpxnzO1HsFhb03yeIlQAg0j 1sE1Y4nBrtxpKsA6QMAYVMTZYJ1YDmu3iiKYcnz4fgEhgdBhf8gy2d6SV1CAMTle4y1DAj Hv5eITgDOmJwl/TYjiP76Kw02wNtrLgBgwAtkI1Vu94V70RvOLYkkOzhraFyqA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690807807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mkGvdOI2kct1CFJlcjLcLX0x3m4VxYwGOMwYMRRKML0=; b=PU0DlnO1rUbQs/958k+z7sA4y8Xe8x+3WAGOZxmh54GMcQFMrao6N/kfJ4u8PnYOpdKrGf /NwDESS0RvEZn0Aw== To: Juergen Gross , LKML Cc: x86@kernel.org, Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Michael Kelley , Peter Keresztes Schmidt , "Peter Zijlstra (Intel)" Subject: Re: [patch V2 16/58] x86/apic: Sanitize num_processors handling In-Reply-To: References: <20230724131206.500814398@linutronix.de> <20230724132045.555787669@linutronix.de> Date: Mon, 31 Jul 2023 14:50:07 +0200 Message-ID: <87y1iwnt34.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31 2023 at 12:17, Juergen Gross wrote: > On 24.07.23 15:34, Thomas Gleixner wrote: > This is introducing a regression for Xen PV guests: those have no ACPI > tables, so smp_found_config will be 0. OTOH num_processors has been set > already using hypervisor data, so setting num_processors to 1 here will > overwrite the previous setting. > > Below diff on top is fixing the problem: Fixing? You can't be serious about that. Why can't XENPV pretend that it has a smp configuration detected, i.e. setting smp_found_config as any other special get_smp_config() implementation does? XENPV is already a major pain to deal with. No need to expand the related insanity all over the place. Thanks, tglx