Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4382141rwb; Mon, 31 Jul 2023 06:12:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFiLYye/oChYQL+pXhuIc+tBcuNkXpeV3TM54+tQFS7t06MmCQC/rM1dFZo1N4I2q1FoX2T X-Received: by 2002:a17:903:11d0:b0:1b6:bced:1dd6 with SMTP id q16-20020a17090311d000b001b6bced1dd6mr10457269plh.35.1690809124065; Mon, 31 Jul 2023 06:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690809124; cv=none; d=google.com; s=arc-20160816; b=u+1jVMPENoOR90t+lkLsnoCy9w8Faf7mrbDClDhI5EbnNE0naxmRT/A2tmkv6ddy69 7mhLKYs+Grjrmbk4zfLnF95FnAbHjzdCdHivnBqM5VqUmagGKbb+fb9YxQ9VJXoLssx7 0FrSXPUJrLRirbbbziNzwKxzUJV0pDOi0kbHohXjYvUBq8v6lAVQgjRoFCsSXaT2jrtC Ns0QT+nJBqAOpj2UC86u1WKhxfkhZpknmy4kPs0w/d609/e9KWRhDMvnBk41oyUn+K4G 1pfyXKQOIFwqgN2ZKAO93FQg3CONft7dlkmfTDLYRASbbgUbB6tv446YzLXclVsVcLe+ h08A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=mkGvdOI2kct1CFJlcjLcLX0x3m4VxYwGOMwYMRRKML0=; fh=FEFImJVd3kon0oWGwQTPJOIpE2cWXlowY1Kio2a4YJk=; b=HOem5gOFM6hJssPUpLEk/2mwtBf/pikP5pGhQF/K3MLS9ybAh/xgJxYQh4EHlPs3Xf 5cmC7UOuE0FwoB9R0zMbPPte/3wIShCyFRkWSh+G8jApC0QORB4+uXp4JTsm+9PfDZ6Z wPe6wxVA3UkDVsq6Uq70qrwSy+76HVED9ZuSrTY8bGo+y0rZkUL2RHlLqHpBbruYgOwf lerDcGxCehbpR4nalqPIdQL/VZvtolAlOdunXC6R1IsaOuNVKmR5SN1/8YHQKtHHTzi8 fsZUBV7q7Vqu3t2zPiX/Af4/unlG1omOu77brifvjMmS9MUI6cgjfpbYwba68MKsXNFA w0Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MSiAQhLj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=PU0DlnO1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170903120f00b001b1bf4c8688si7594647plh.231.2023.07.31.06.11.49; Mon, 31 Jul 2023 06:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MSiAQhLj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=PU0DlnO1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbjGaMuM (ORCPT + 99 others); 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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