From nobody Tue Feb 10 12:59:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1609947692; cv=none; d=zohomail.com; s=zohoarc; b=WE26U6WBoPxB/aT7q3XjMM4JMRUwdR+jmQEHtuFbuqY/vxn+ZSFpErT8jV1j80+xwBR0nBn/PODIYXBGQLT7A8ixGeGoIM6nFGDT2uDzzgGZhWrPM6CCkT+xmD5y2zz3MzDaA3Vs+T1FGqByXVy+oTylNlHq+QYUtg8bOsIzrr4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609947692; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NF5qU2beGi/rF+3rF7wt8hkPc3cRKRCyW5iFlpMo7CY=; b=XzOf+wPqX1B0WzPnwf7lwuLJOJOtdmFRpF28FIKYP+3uGIadHs6qnbxpC+gv9kk9Ee8mmXT21I+Qj6YRxIKOPGQrcImJ2nc4Miu3331J2OL8r6xhoSRVHYXBYmNqU2rwR55U0w11LavgoAKffWzHx26HuuVqdXweJPN0qeXLgvw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1609947692787103.80847461489259; Wed, 6 Jan 2021 07:41:32 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.62549.110857 (Exim 4.92) (envelope-from ) id 1kxAw2-0005Eo-Bs; Wed, 06 Jan 2021 15:41:18 +0000 Received: by outflank-mailman (output) from mailman id 62549.110857; Wed, 06 Jan 2021 15:41:18 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kxAw2-0005Eh-8Z; Wed, 06 Jan 2021 15:41:18 +0000 Received: by outflank-mailman (input) for mailman id 62549; Wed, 06 Jan 2021 15:41:16 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kxAw0-00058z-O9 for xen-devel@lists.xenproject.org; Wed, 06 Jan 2021 15:41:16 +0000 Received: from casper.infradead.org (unknown [2001:8b0:10b:1236::1]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 066f1fc7-aa8d-43f7-9d6d-9b8e128c5996; Wed, 06 Jan 2021 15:41:09 +0000 (UTC) Received: from i7.infradead.org ([2001:8b0:10b:1:21e:67ff:fecb:7a92]) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1kxAun-002TH1-UM; Wed, 06 Jan 2021 15:40:12 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kxAul-002S22-VC; Wed, 06 Jan 2021 15:39:59 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list X-Inumbo-ID: 066f1fc7-aa8d-43f7-9d6d-9b8e128c5996 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=NF5qU2beGi/rF+3rF7wt8hkPc3cRKRCyW5iFlpMo7CY=; b=KKgso+wyjQZM0Ao6KZwk6jh2nu JcllBJx0JtKCR+3joqeEAtAgWujqrvpjUEPHw7fxi/VTFSRQqUvi9KAtWVKmVewTmSw4I1VlxbXDQ Z7KU5M953SP5xGKyCxfQ8pL6dKeuuQqj70Fd0CaBiJOcGrvLSkFgd4vUANc1simwbqqVm4MnB71PJ tvn7UWIeIrW7fVWd9vZVCrseepPtYrdQQCE4RsmTuFGR3t5tjt8b/r0UTypMlqd8LMewUIfP7sVo5 yEcpvXz71L/nXW0Il3M2Ml3bMJb6ix4C7IITr7mxxTt0ZwQgvE2MbGJk7v4+sPeRRov0BEL9Gfut2 LWgMavOg==; From: David Woodhouse To: x86@kernel.org Cc: Stefano Stabellini , Boris Ostrovsky , Juergen Gross , Paul Durrant , jgrall@amazon.com, karahmed@amazon.de, xen-devel Subject: [PATCH v3 4/5] x86/xen: Don't register Xen IPIs when they aren't going to be used Date: Wed, 6 Jan 2021 15:39:57 +0000 Message-Id: <20210106153958.584169-5-dwmw2@infradead.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210106153958.584169-1-dwmw2@infradead.org> References: <20210106153958.584169-1-dwmw2@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: David Woodhouse X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-ZohoMail-DKIM: pass (identity @infradead.org) Content-Type: text/plain; charset="utf-8" From: David Woodhouse In the case where xen_have_vector_callback is false, we still register the IPI vectors in xen_smp_intr_init() for the secondary CPUs even though they aren't going to be used. Stop doing that. Signed-off-by: David Woodhouse Reviewed-by: Boris Ostrovsky --- arch/x86/xen/enlighten_hvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index ec50b7423a4c..e68ea5f4ad1c 100644 --- a/arch/x86/xen/enlighten_hvm.c +++ b/arch/x86/xen/enlighten_hvm.c @@ -164,10 +164,10 @@ static int xen_cpu_up_prepare_hvm(unsigned int cpu) else per_cpu(xen_vcpu_id, cpu) =3D cpu; rc =3D xen_vcpu_setup(cpu); - if (rc) + if (rc || !xen_have_vector_callback) return rc; =20 - if (xen_have_vector_callback && xen_feature(XENFEAT_hvm_safe_pvclock)) + if (xen_feature(XENFEAT_hvm_safe_pvclock)) xen_setup_timer(cpu); =20 rc =3D xen_smp_intr_init(cpu); --=20 2.29.2