Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp187586rdh; Tue, 13 Feb 2024 13:37:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3Pm7+Y0r2qRjD4XP5rkOkXgN0NbGgOQ1/DSAiAYPZDkN8lEj2VJQqJEwe7wHo3alfR4nUJSaTpvmVuymWEDiu6bh/rk49hK25lfFjsg== X-Google-Smtp-Source: AGHT+IG8TrOFQUpkhbKbm/JCbY7jMvn80RS+2rV/6MJOWFHnPlpKKUiPBvqVX4vwYsWZV25mcTVK X-Received: by 2002:aa7:d1cb:0:b0:562:11e3:7084 with SMTP id g11-20020aa7d1cb000000b0056211e37084mr761621edp.31.1707860272910; Tue, 13 Feb 2024 13:37:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707860272; cv=pass; d=google.com; s=arc-20160816; b=LUgGvMWz1zjbVJM0tfRSu0ud5AnMS4W/DRS1pm6gURL9MtMIoa0bQh9C84zwrut3H3 6RxwqfsDNQr60bmgb3AlA9MT0eKnycBpbF9ZSOK2BBGXccuECqi3emJPdZ+NXyuns3UT orp7EtzWWBwztUAsFTr6t8tdlBNxI0eH3jMVkx2r4wA/BJNXIBIQFHXHG5Hj5vtagpwY Z/1GfzvWI2ATvLEA2Wx4kUQP30y0lPombPTRXNeR0lNF7QjfvHEkv3KeOfJ5StP6PiWY qAaM+EJNtr1QGtwBi8Wgf1/R26GR9k4iTWaBcOeA0QPfR8OkySgqkPlLhYBkSNERe+WQ hrnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D3ecxWaMVByifJVjnfG1Ub3I2qDV2hVXXGWWQRAmNxM=; fh=NjdvVpTKOzDVn0s4h5lrvZpUvf8gTS6UIvhNVsbHyUw=; b=lyI+DOTheau50JJmlSXafHLnSlqi7QDOhF/uTuWofKwCRWt9kGsZ3ss5n1YLTCOeJG XMMGG5yaLEU/mTXXnIxI1iYk7XIkXtKX25a45NmQCd6GENpF6WQCT8aJbykioxtciMef g1PbpyXSISQU7Ie/SlESxrwpHLb/BHrYYxLHL0ms0935FxI3EusBinxxTQg1GMP7nUOU cOCKm52CJN2MgdIPmlWbEjrE+ZKTXBOYhGfALSz/+EpCz47qk1VyVaEOpOpLY85PMvYA /TywT13RUzWEZbJWZMxXt5B+3xkNn7Gd8htU/J2uqhrh4qw87y+bKszoFBq+Pp5XlIXt 4mvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=QEIyaW03; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-64341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de X-Forwarded-Encrypted: i=2; AJvYcCXu7oaRZxlmXUX3YS4hAtuaQs7iLciGUbdjhfkJSgPKfIEYaETdy3eCapZsUyOE1jqCLD04JmSpqGWEQXsDbId1z+VZ5tIhCcPZChQ3rw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id er15-20020a056402448f00b005622ef3bf85si147985edb.404.2024.02.13.13.37.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:37:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=QEIyaW03; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-64341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A6E401F253CD for ; Tue, 13 Feb 2024 21:37:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6C566215E; Tue, 13 Feb 2024 21:37:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="QEIyaW03" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DAC260BA6 for ; Tue, 13 Feb 2024 21:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707860243; cv=none; b=M0YWJ2nl53MIk+xJ7kP5orVs4zCyZTAswvYfT+pQRznWwixLwqIGnJy0tNBxLymvn9AWfU/zTiSJx79a8NmRg1k3ImRPadCdiT97TloMph5AQ4ckJ+w5JbQH4HPYSz4oqOwnN65hGjaV/lyM3xPoP2ikto2S7lr4CsiwL5oE1ks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707860243; c=relaxed/simple; bh=+u+owyuKuJFkGHSGbKvz4UTc229rDQ9Sn38kEXmB04M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mtfow/npcQ5F9Mr85eWl+UMMxqm14U6F2uWOvaEaHPiO1FNVuzkVqjL3zjqFyB1lkSOvYQi0ukzPvEBTYhrl77nQ8efy9SO2tS+45eovfp9ozx1Bx0UWCE+HlcQPomOsH6nMrds9OtkFaZ1OOcyPaQAnLXU7q9+dklHvsrdHH4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=QEIyaW03; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id E805740E01F7; Tue, 13 Feb 2024 21:37:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rI83Hgbywzby; Tue, 13 Feb 2024 21:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1707860235; bh=D3ecxWaMVByifJVjnfG1Ub3I2qDV2hVXXGWWQRAmNxM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QEIyaW03qmQqCOv7v/9h+CCMwtAfHmbKYaK2mU8d9SBu8+btRkVpuDZonh6URfSKn Uviju+rT83R47ybInt0FYq4+K+thLxdWuB07OsQYzAoRbTySC1DdlLs3g730ezDIiS faq6Ou+fIHaL72eY1QOllXmj7VeglRkxDu6jS3fgrdkx7zF0w/WvKty+RC2+dq2Rhh wuZoDmQvhF2Wc6/COvGL76w/DlOn9pjgvGWlPEqtSrNh/uC3u303PiR6T+YIIUmYEy 080edipcK2tzZJdUwoAmfY+MKInu5Gi04xqCfRdfu+8VPmR0n9ie5uVm+sa2zTkZy6 TnJYLNCmC8V38d5GIuv7JiV6nS7vT0WUkYRwqG7VDL+IvDiCSyabHG1pbBlVs6qvBD CaX3rDyzPFqMk9T1mE6p4dkIPEm+DorTu01dkaEmc7wymFCNVWDe2GxEtj+2Dt0bBx 5avd4WDmuUd/PlBZolK+VzZSpksmbIQL4DI7MSBFal5cJ5bzoeLFsK/mB1mRPPeD2o QilTRXqY0tE7n6U6XJF1ACiwxg0gC9dPvzUygbPti3iCJA0AmKpWS7YNmNgca4wo5Q UYgONNPohLjk2Wtb7FJA06Yk+Yuyr2YVVZj4B+TQ6uKjeoAcVtk2pvGu5Z3temJ/N0 4AtKxDQpn55wGP4Ji/Qv/Mw0= Received: from zn.tnic (pd953021b.dip0.t-ipconnect.de [217.83.2.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 2C60340E00B2; Tue, 13 Feb 2024 21:36:56 +0000 (UTC) Date: Tue, 13 Feb 2024 22:36:50 +0100 From: Borislav Petkov To: Thomas Gleixner Cc: LKML , x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko , Michael Kelley , "Peter Zijlstra (Intel)" , Wang Wendy Subject: Re: [patch V6 01/19] x86/cpu: Provide cpuid_read() et al. Message-ID: <20240213213650.GEZcvg8uvjPXTVhmHv@fat_crate.local> References: <20240212153109.330805450@linutronix.de> <20240212153624.516965279@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240212153624.516965279@linutronix.de> On Tue, Feb 13, 2024 at 10:04:00PM +0100, Thomas Gleixner wrote: > +static inline void __cpuid_read(unsigned int leaf, unsigned int subleaf, u32 *regs) > +{ > + regs[CPUID_EAX] = leaf; > + regs[CPUID_ECX] = subleaf; > + __cpuid(regs, regs + 1, regs + 2, regs + 3); Yeah, __cpuid(regs, regs + CPUID_EBX, regs + CPUID_ECX, regs + CPUID_EDX); explains what those numbers are. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette