Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4022693rwj; Tue, 20 Dec 2022 05:14:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXt7EY3LgrrOag5qQJBgtH14zG1d6sh+7KL3YcCL2Gv6XXi7OBPZL08a++zUXB6eweXalhxo X-Received: by 2002:a17:902:f2ca:b0:189:86cd:d7c0 with SMTP id h10-20020a170902f2ca00b0018986cdd7c0mr10003848plc.18.1671542050689; Tue, 20 Dec 2022 05:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671542050; cv=none; d=google.com; s=arc-20160816; b=MkE75Kvhn8f3xEFJCUndmHq8XdujPMMQdxvzyBU5+Rqj65Z+z0peX0XLQpEOQaBe0c RhHwOkfspo2Nz+rfquH3rtcvCrc6KKJaT/v2smHM8BBi8MgcpF/gPO0hP3JcnQWVnSQa CySgo2gIRQJzIRQ+/gXP40a3mhUYT+eHGLECrTSHOnpORP3Vpq7XCNzTIDL7pP1CUs9q PLZZ8fYDvMmmxG1PYd6cAkn4eB8RfxBbEb5xSJ9d4hUYNpdsZCo55BaN8S/dG3mRtUxA MGfZElv0Xf9XYFVRzdaPVNyDvb3tnSIifii4KS7wowq8cBlCg8dhDSkNWoyw1jFaxZWH GbQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2YGLPYrhUM3liQYpN3p/+bDVBoiicBenOmdXkygbdC0=; b=x+I0AF3iRFa69zGuz2qnaaf5BJ7CorioxYOTjsM7Ar/1eo13gpAOi0rC+6K+KvgpS3 2M0uOmbbUl89nuEuulsJ4oqdk0XsWVntETNzJUdO+7CUHlh03upCflsnHZngdvkvXWQX o4UM00JQnyLxtABn9Q0aVqQaHttAsteh1MwHGMy5H0qQD7t8eNmJvVH4BTSKuE119uqy JUD0go0MRk2K+Wk1bHitdCSbnnnr74feHPqydBxM5Q3AuHwaVGN2FGSI8/9fW8RvvC5u pzJtV2eAw0fEpNDbms3ePQnRngp5LWGOAQEsw2T1kT2mtiAJpdsllZR1gGR2hqdoqx96 qmUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LXDEEGFr; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170902e31200b00186f22a06absi12629308plc.253.2022.12.20.05.14.01; Tue, 20 Dec 2022 05:14:10 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=LXDEEGFr; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233661AbiLTMnN (ORCPT + 71 others); Tue, 20 Dec 2022 07:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233572AbiLTMms (ORCPT ); Tue, 20 Dec 2022 07:42:48 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99BB1A81D for ; Tue, 20 Dec 2022 04:39:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671539928; 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=2YGLPYrhUM3liQYpN3p/+bDVBoiicBenOmdXkygbdC0=; b=LXDEEGFr2NiW0tHm7TOAuFUfYCvdyxpv3v+YV19EwolWYJLGXiJDlTspVrIUC2if0wn03E LM9uCzN38oQymBy4hTGCQQEMlQmvtwS9j+MKUjEYGgjzVPYA4bfdyBLVfT3Zv5vrHCh0U6 v0qoZERRx21OGgKE8SEIfPyLxMx8D9A= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-561-hvM0dMytMiWl0AERQdiC_g-1; Tue, 20 Dec 2022 07:38:44 -0500 X-MC-Unique: hvM0dMytMiWl0AERQdiC_g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 04002183B3C3; Tue, 20 Dec 2022 12:38:44 +0000 (UTC) Received: from localhost (ovpn-12-53.pek2.redhat.com [10.72.12.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 30D8240C201B; Tue, 20 Dec 2022 12:38:42 +0000 (UTC) Date: Tue, 20 Dec 2022 20:38:39 +0800 From: Baoquan He To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , x86@kernel.org, kexec@lists.infradead.org, dgilbert@redhat.com Subject: Re: [PATCH] Revert "x86/apic/x2apic: Implement IPI shorthands support" Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 12/20/22 at 12:38pm, Peter Zijlstra wrote: > On Tue, Dec 20, 2022 at 01:34:58PM +0800, Baoquan He wrote: > > This reverts commit 43931d350f30c6cd8c2f498d54ef7d65750abc92. > > > > On kvm guest with 4 cpus deployed, when adding 'nr_cpus=2' to normal > > kernel's cmdline, and triggering crash to jump to kdump kernel, kdump > > kernel will stably hang. Reverting commit 43931d350f30 ("x86/apic/x2apic: > > Implement IPI shorthands support") can fix it. > > > > The problem will disappear if removing 'nr_cpus=2' from normal kerne's > > cmdline. > > And the root cause for this is... ? Does the kvm x2apic emulation > somehow get upset when we shorthand CPUs that haven't been initialized? Thanks for checking. I haven't figure out the root cause. I haven't read the apic code for long time, and not familiar with the kvm code. So raise the issue to upstream. I can do testing if any suggestion. Add our virt dev Dr. David Alan Gilbert to CC.