Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp209194lqb; Thu, 14 Mar 2024 09:09:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2q9HtmWpW+gvWQomxwN4lLc7KltT0LWbvZvuo2/0JB/SIS3Dn4z+twCzycj0On68cF46SmAKO7tBjdyk4hvQtEx3InVDcbvJbhXmsiw== X-Google-Smtp-Source: AGHT+IE7u+PCx7OzflJf1DYRPUO/f0KUtNNBgyh7wJV6IcZkcxQlOAGYYSMpRJ33U2pEALJXbpSl X-Received: by 2002:a17:907:384:b0:a46:2b6a:d7aa with SMTP id ss4-20020a170907038400b00a462b6ad7aamr1311002ejb.41.1710432547064; Thu, 14 Mar 2024 09:09:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710432547; cv=pass; d=google.com; s=arc-20160816; b=WJpWj1IoN5NIvMjgi3AeRZBUUi2gLDMgtyRzY3G8ijv84NQpMxc7PrnsRmxobf/wM5 /g1/eLR2foeAtz8YidD2gtZMzL4qDeoN6+kycD/TMoMfdH/wdjzcTOcznKkjFeAPAE3G qgyGb9ulWx8Bw6yIK4hbrq2K8VHk+68HXgBou50FCqIlZ7iK4Q9ZsSoLbOiHi3/K+6Xf rrQVIurC2pSlVDl4l7ZEfjOGR4IFTJQODz3K0eMx/INRtwTvDhA2FQb3J+WyGPR/9FVc bwQaWNPmtDg0YOo7SqzQWnaphjspir7s/LWWtfxElGl+ypcVduRs0x/bYgcULmCOfdz5 AxJg== 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=u9nhnnVER2MqsEuiHVV7b+N5w2oLrVMSD1KImKcyqYE=; fh=hKEuN7DEBLDvQ7ciMVCl3IRhzpjN6sM32SpMWAGXiFM=; b=FEsSo2LoWfeRCwH/s53YzXsV5ZOq+ODBgWB5T+Q0RlY5UdvFK26+MYUQ9vkzencrra m/l+t9SWoYkXx+yds+U46botHwieWs86WvO6Fa28OkUR0HuUVhJiOFLv+DreiwSK4Eic 03QSHODmPJt1T7/8KUQkCmZMuVoJ7CWTjc1TeWOUadF5nT/dy5l28ftw+a52iuMEXGe9 rIlMcLRLi3KFsjxurDncNGGtLkUIR0ew0P+Fvhy1gOQBbe6QxW7gulFmnJvqLiq9O8Og 9Y3K8uFRXvmLL2qnL/9H4C6KlHbR2vr+QgwEfJQzvEYWtghMz8H7aFP06ckhLo6pzRqd hjuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=bze+eO38; 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-103548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l23-20020a1709065a9700b00a3e87c87ba5si817032ejq.393.2024.03.14.09.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 09:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103548-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=bze+eO38; 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-103548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103548-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 AEA7A1F21B8B for ; Thu, 14 Mar 2024 16:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5E6F73513; Thu, 14 Mar 2024 16:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="bze+eO38" 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 4A15E6F08A; Thu, 14 Mar 2024 16:08:54 +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=1710432538; cv=none; b=BYAdD+hPkZBvz9dBxpmnoMlkG33BwzSP8ol7S0eZXr1vRGCknpRiqeeAYCKhR2QfKtb6/9vR6q5Fct66UPRynRgTTeb/pKbnmWuyzqX1uTpL/Ne3wJNpPPg7ZFzR/lg/JZcVFSOlFpitPXll5q1uxCy/LRs5e27ZOSZS4LCUOvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710432538; c=relaxed/simple; bh=qU8tcwpg4kZZ303+/A6tP9KvoLsZ4rzx3+wZQQtMyBI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lBt5h7Mtm6FD4ne/mEZVHhvq/xdLpNpxg8xKpYecHbdrba8Gz3CocJhThTKsVcs+/RO5gVhiHcEQVZ6/YcP9mIWNrGc/DUyWQFQumbs32YbtcJWOlXaZ1M3fPK1TOr5gA1z5dznn4nmcOIfQLeKJ6bnB2GuYHun9aW/aNfanuZo= 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=bze+eO38; 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 5C86C40E0174; Thu, 14 Mar 2024 16:08:52 +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 iYKy3ge94Yhi; Thu, 14 Mar 2024 16:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1710432529; bh=u9nhnnVER2MqsEuiHVV7b+N5w2oLrVMSD1KImKcyqYE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bze+eO38mtey/oQO9TE6rC5QYszyNbYqihUCyAmz11U2l0FLDWmeQPh5nSkRVWj5k kk4fvAou9Jyo3bqFZ6YpVfG9krfdXdzSoBinA8p31jm5UlcR1msjpGMg+cS7AJf5A6 7PVMNux62VHqCC5m7RwuaMB6Rgb9gOYkZn7UQSIG+ubfDOl8AnOrbXL/c8ViFddWb3 GrrcM/2Ixna9slmgbPm9YZNiwdhcquWhH4EnirZ3J9fS97AhzLytZpk+6Lf5ZaJLi7 XVdAAAA9rhi5YSsd2j3SELHTdDpuOFrzPnyD5KpR/CdH4m8K631xoNVqMJpCeRw/t7 w/w/GnVNFedMNGAYomASXyifuPryU2Uzol8DNgCY2b6H7jeAOenl4LudLjPgmxfMOF fkdSsZwbXuqtj9YX+Cl2gN6Pyt6BMKR+JBat4rA23IqfY1xccD5PdYvUCrB7x8lhGc 0t3irVSUWS9nB9v2ZghpQJLQWoHSBItDxoqoowoAs7qjVzwCmRlPHRyHFWKbO4PD3h LgUcyEdUkROWhUtJjXRWRD65NenDiHrfu3rJ/YJW962Yy7ESPU3QNwb0JhDFyuGJzX 4BgPdTyWV6Qoeb89EDGC4H2/fFnY8bizj/OV2JfM88ofm2ZAuhxVv7sqtI+1kUaVoS +iuAAdBOEGllWwDoaofW4c2g= 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 8744640E0028; Thu, 14 Mar 2024 16:08:29 +0000 (UTC) Date: Thu, 14 Mar 2024 17:08:24 +0100 From: Borislav Petkov To: Dave Hansen Cc: Vignesh Balasubramanian , linux-kernel@vger.kernel.org, linux-toolchains@vger.kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com, ebiederm@xmission.com, keescook@chromium.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, bpetkov@amd.com, jinisusan.george@amd.com, matz@suse.de, binutils@sourceware.org, jhb@freebsd.org, felix.willgerodt@intel.com Subject: Re: [PATCH 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files Message-ID: <20240314160824.GDZfMg-J1VOyjxIMiV@fat_crate.local> References: <20240314112359.50713-1-vigbalas@amd.com> <20240314112359.50713-2-vigbalas@amd.com> 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: On Thu, Mar 14, 2024 at 08:37:09AM -0700, Dave Hansen wrote: > This is pretty close to just a raw dump of the XSAVE CPUID leaves. > Rather than come up with an XSAVE-specific ABI that depends on CPUID > *ANYWAY* (because it dumps the "flags" register aka. ECX), maybe we > should just bite the bullet and dump out (some of) the raw CPUID space. Funny you should say that. This was what they had done originally but if you dump CPUID and you want to add another component in the future which is *not* described by CPUID, your scheme breaks. So the idea is to have a self-describing buffers layout, independent from any x86-ism. You can extend this in a straight-forward way then later. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette