Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3124728rwi; Fri, 21 Oct 2022 11:53:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dMElmyBpjyI0kuDnE6ju8cdvyDNohNkfRkQXUkpBNNKRkMZcOgM7MwazGhIWUMRnFfBuG X-Received: by 2002:a17:906:cc56:b0:78d:98c3:8714 with SMTP id mm22-20020a170906cc5600b0078d98c38714mr17403750ejb.445.1666378403500; Fri, 21 Oct 2022 11:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666378403; cv=none; d=google.com; s=arc-20160816; b=niVWk45lA2LFecEocKaFdcSW8F64/ui2NfObuFG51B+6kythkDlY1I1ok9NA1hf/oP O1pFgZtro6Y77sjmbYv8V6wFOq9S7/tNy7ZCS3nj4DSAfCvBuFU/SwQWGWPd1TQRRa+f uYRUdMA7cVqmnPPOWjOYVTN2j0cf5e10EDYnSsxVFN0/jxWr3Rxs69oY6jg49VUHtZMi GdnyFzsrsOMVvabOhXYqZemS+L2oGt1b/z60wemWOZkMx256SD0ubvTKeoYUYPxoggaH ok19wnphjpQku/6BvsOJ+usjm2qnSugbfgzuRw+gFEspa7TtukCFYVBI3Yc+qFj4jJTA ZsBQ== 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=ylHRyq5/4KpO5TnQHHmVNpCuI4uMbpwXOF0FuS2ZL3k=; b=cdzrvjsEK9rCI6g41h4OP1hMfM1YSZZoHd+GAd6HybLaBi5d+YJYgVA6IyIEd5lUMo uJMb61J+G99mxIFMUc3aVtvf0JE9O4CNcRtF/bzBvIqLUGn9pcC8aDel3hoJm3f9Z4tc llmcywtXC87RTXSoJ2gc7ivWCj/6xOCkoNHMBo0MhHI3tVMN6goklZwD+cXliG3gCPLz VhQPW8VdHqiirM2qd8k9uzQwiF2cXVEx7tDTB2J9ONRx4PRaB8xgfGhbcOiLT0ICJ/h8 PTfj/zUxc+jqTU3tRkg9866f7wEORAY5z1dXuxNyg7CcK+pQMBnxoJXDqyUYbKekJ03B L1dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JwZzVyWi; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n24-20020a17090695d800b0078396eb97c1si17037144ejy.382.2022.10.21.11.52.58; Fri, 21 Oct 2022 11:53:23 -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=@alien8.de header.s=dkim header.b=JwZzVyWi; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbiJUSKu (ORCPT + 99 others); Fri, 21 Oct 2022 14:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiJUSKr (ORCPT ); Fri, 21 Oct 2022 14:10:47 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 472FD11CB77 for ; Fri, 21 Oct 2022 11:10:44 -0700 (PDT) Received: from zn.tnic (p200300ea9733e769329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e769:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A04A91EC072E; Fri, 21 Oct 2022 20:10:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666375842; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ylHRyq5/4KpO5TnQHHmVNpCuI4uMbpwXOF0FuS2ZL3k=; b=JwZzVyWi9DyKBQlsbuUaPItTfuG9821j+6TbazbC2nuXR20ByNzTRIKOsNotRSUsYn6a5i J8MO3huAXv31xaLR7yRwQY7sg9cQmwVjwJro1EpzTiwLqP/yYHVNww59Dsn8hGoq1SPqgk AOhNnCiZHg9BmWbPnivRDVVEMCSBKbY= Date: Fri, 21 Oct 2022 20:10:37 +0200 From: Borislav Petkov To: Juergen Gross Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH v4 03/16] x86/mtrr: replace use_intel() with a local flag Message-ID: References: <20221004081023.32402-1-jgross@suse.com> <20221004081023.32402-4-jgross@suse.com> <7af80d1e-d658-5dee-32b3-a9976e900dc7@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7af80d1e-d658-5dee-32b3-a9976e900dc7@suse.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Fri, Oct 21, 2022 at 08:05:39PM +0200, Juergen Gross wrote: > Please have a look at patch 10 (I've put it after the rework of > mtrr_bp_init() exactly in order to avoid the dance you had to do). /me goes and looks. Yeah, if (mtrr_enabled()) seems more readable to me than if (mtrr_if) but ok, changing that is easy. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette