Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp921094pxb; Thu, 9 Sep 2021 15:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfep7ZQkogT/V6U+DEU5NTPqX3baZF/8nYFrUoAUNTzGO32X/ONa2eGbXV+4LCQu7nbOpX X-Received: by 2002:a6b:14f:: with SMTP id 76mr4491825iob.211.1631226379579; Thu, 09 Sep 2021 15:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631226379; cv=none; d=google.com; s=arc-20160816; b=J/n1OmIpul4wLv+wodSu6vrRwhWW9dE90lpeRBFCx1XGDoNVjAtimVcBYXXlWC8h30 DG6Azl0k9gvkEKlCoqrgucgn8ZQEkenr07pM3NszJTJ4TeWndrkckA6/mquFF5W41/g3 PC0yBaQHqWLvnut5zZlEBrFejeQR/S+9OGNsLIQlgpbvT4uLAfy9/N1/DKFjXkTlWhb4 TrngQV67F6CSiPRndHsaubs5W+MrR0HrewaC61K8FhLnf/lpMOKa46TdXrPU744Cjg4C /usThCVfp13WB16dSyMoGZqZ28kW+9KdibJ3zufAB0MxvMN2HcUrIX3NhuvmsueS/OiA 0Q9g== 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=NUEsI+swjqPe/UooycIhKWMyQ3NgAhXifc0qEEodAfM=; b=Qsh0XKua5DywdPHH5SeBn4/HpLi/8UtZ17GbeEPOseQqoN4cVoOMy1nMCOF5flOxwG yGSEZh4t6zBLEuKmKB6Lqm7xV8YLD8ddgQwDB6ZTIKlik0K0aC9fpbhoBkCnOBuQNJX0 luZMmnQ8fIDxXgnVr99KczWMqB8XLWVruLMtB3qm5YdlKCiHFqlp8Q01KqUC7W52wOj8 DxK+oNElS6mbU+/5IP5h2+YZDMk9aUWaBJQpp1ZDC0udPz0367IXkhBcgmzmXYNZ4Iw8 kRkAUt4JpBWCbPKcqupvOYD6AJxyXNSUsgetFqhU8GteJWM4czwEsltQ4Y4+SuACDuKZ TZtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Xz90GA79; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si3478586jap.59.2021.09.09.15.26.02; Thu, 09 Sep 2021 15:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Xz90GA79; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233882AbhIIVzI (ORCPT + 99 others); Thu, 9 Sep 2021 17:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhIIVzH (ORCPT ); Thu, 9 Sep 2021 17:55:07 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC37FC061574 for ; Thu, 9 Sep 2021 14:53:57 -0700 (PDT) Received: from zn.tnic (p200300ec2f0e4500e54deaa4563ec494.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:4500:e54d:eaa4:563e:c494]) (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 D04B31EC0277; Thu, 9 Sep 2021 23:53:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1631224430; 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=NUEsI+swjqPe/UooycIhKWMyQ3NgAhXifc0qEEodAfM=; b=Xz90GA79ggcI+KwjmKi7IMUeynYCgpSjMTK0tqofagZPMZ7vItUDL0X1sAppG6/m+3WY9P ZsMC2cg7LGUZO08NUG5yfLXNhXm+nWIzlHbWa3XQatxKkoKxrylUVfgR/QZZakNkVHk42N Etqk6Vz4HwnnrqZcXvWzlj4nb21AbhY= Date: Thu, 9 Sep 2021 23:53:43 +0200 From: Borislav Petkov To: "H. Peter Anvin" Cc: Thomas Gleixner , Ingo Molnar , Andy Lutomirski , Linux Kernel Mailing List Subject: Re: [PATCH] x86/asm: pessimize the pre-initialization case in static_cpu_has() Message-ID: References: <20210908171716.3340120-1-hpa@zytor.com> <1a73e0c2-8efe-fee9-5141-f7e9a95c748d@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1a73e0c2-8efe-fee9-5141-f7e9a95c748d@zytor.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 02:28:42PM -0700, H. Peter Anvin wrote: > Because it is shorter and thus can fit more contents Pessimize the pre-initialization case vs Do not waste registers in the pre-initialization case I'll take 16 chars longer but a lot more understandable any day of the week. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette