Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4837938rwb; Tue, 8 Aug 2023 15:00:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUXjVPG1n2zPnAI0IscINGw+IbkMfHXt1nuPIC9RmJvGX5xD+mhQ0BBRfIVBP8SfEbbfX4 X-Received: by 2002:a05:6a21:3286:b0:140:a6ec:b55e with SMTP id yt6-20020a056a21328600b00140a6ecb55emr954934pzb.3.1691532040501; Tue, 08 Aug 2023 15:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691532040; cv=none; d=google.com; s=arc-20160816; b=DtAKd7ETGDn1LhJH59O2YqsNGY/XtaWnufRPh441vmVzTpYBL5teZ3ZDHTZKHg1zn9 kN6jWi0GJN+UstrQ/eFdgmbzav0vI/gh2BzuFvrWP/IJVUFStl1o6IDmaCwQqQQfzss6 HetPkix3K7sbXAdHO+Ac5TIfemsj08Y9nD2eSRFRkpSm/b0nGgxRtrkpNPM5Nl02peHb BjVbW0/JfC/Y3gcrc8D/9iRGrx7atbZEhBhA1UWM0BMmxKO7+k1AuSNHg5b3il5MwpC8 iMogmfPA2qZ//6TbgDW8q41iWlrbgBzekOVlcM2u8/oUnVJDMsF3UWryduoV0ccfHwhB MEpQ== 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=Jk/7O+KQ8PabwPvLbA1rFu4Gg/yku8mgTP5GC7VSBN4=; fh=UmD3jcbEg2No0zJOy2bJqjBSoxlDiSb4DilwKLA7Hqs=; b=ta1+Ag5hXEb70nrfzaHR1UwmJA0RrKRUIvp00U1qu/0rLvt0BIvmYHJV59SdYBME2O ikgQNiD+Z75j6/U16SGoR0Nfli3M6AbxRMi8qsftNtRqJm7kdciixdDLGIQTHRMrAd0r QivaJm1toHPTTXm9uhl0ULZOlfDP1tnUDfThMpUxnVQmZDbM3MGfl7hpQL/TPNMEL4GU cRfAfYbtKbLVdxoQD0qnlbmk80TqyuB7CslHfHLXaMzX7mxHDypduYQDmIT0lllPMBqF h4ppkwoDP1n3S7Meo9k/rqYHkManDQP+/okf2qX1Ur4HkqSkhWGzLcvurVQSFS0eZOGb YV2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kioYb7Ir; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=TnxQGSKz; 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 h20-20020a056a00219400b00686b8078e4asi7982968pfi.255.2023.08.08.15.00.28; Tue, 08 Aug 2023 15:00:40 -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=kioYb7Ir; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=TnxQGSKz; 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 S234607AbjHHT3B (ORCPT + 99 others); Tue, 8 Aug 2023 15:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235809AbjHHT2h (ORCPT ); Tue, 8 Aug 2023 15:28:37 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A53A62D07 for ; Tue, 8 Aug 2023 11:55:17 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691520915; 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=Jk/7O+KQ8PabwPvLbA1rFu4Gg/yku8mgTP5GC7VSBN4=; b=kioYb7IrEe6W/xySAiJPXqnt7NcAsAc4sBQocV6Impf4P5wYMx7Mhde2rhJqiqS3DUP41U fO2o+Z2cHmpmAqKnwg3d4QqqAjw+3/+IF3qHIXE86qlgFb5pZTne4LhQipFsCjQX7WKkNU 45b+mkGuraxLZYNvIvxOr4PS2M5vKHdZanm7rjYNzlahBoeKF90Qpjj8N+ne6o+da2ctd+ y/3pjGNbH0mF1BNU4m5QoR0DLMfqtKKvJT1F2Ke1Awkq29uqppvSGdCHBbnk68x8KXl0vM hBZusVXniqSjWxYdxVufgqdluCUXDAJ5cYTx35u1QEa/9aeyXZioD0evPXzOOA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691520915; 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=Jk/7O+KQ8PabwPvLbA1rFu4Gg/yku8mgTP5GC7VSBN4=; b=TnxQGSKzznGVYxYQU3UZ7DbZW7P1aGh51eWqQg1hgFlv9wqIwRjQksD49eQ2B+VAIFt0rr m6N2MwoCjwgpbNCA== To: Qiuxu Zhuo Cc: andrew.cooper3@citrix.com, arjan@linux.intel.com, jgross@suse.com, linux-kernel@vger.kernel.org, mikelley@microsoft.com, pbonzini@redhat.com, peter@keresztesschmidt.de, peterz@infradead.org, thomas.lendacky@amd.com, wei.liu@kernel.org, x86@kernel.org, qiuxu.zhuo@intel.com Subject: Re: [patch V3 45/60] x86/apic: Sanitize APID ID range validation In-Reply-To: <20230808133407.10901-1-qiuxu.zhuo@intel.com> References: <20230801103817.624346203@linutronix.de> <20230808133407.10901-1-qiuxu.zhuo@intel.com> Date: Tue, 08 Aug 2023 20:55:15 +0200 Message-ID: <87msz1l5yk.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Tue, Aug 08 2023 at 21:34, Qiuxu Zhuo wrote: >> From: Thomas Gleixner >> ... >> Subject: [patch V3 45/60] x86/apic: Sanitize APID ID range validation >> Now that everything has apic::max_apic_id set and the eventual update for >> the x2APIC case is in place, switch the apic_id_valid() helper to use >> apic::max_apic_id and remove the apic::apic_id_valid() callback. >> > > This patch removes default_apic_id_valid() and all references to it. > So may also need to remove the useless declaration of > "extern int default_apic_id_valid(u32 apicid)" > from arch/x86/include/asm/apic.h? Yes. Seems I missed that.