Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp225612lqb; Thu, 14 Mar 2024 09:34:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVV0afKjY3OfcDokZXyGxTAjNKZbK4tSp9PRfz+aeXmnJlo2f9FlGV5bJG2w6YSP5YbUpvk2KzYGbxwKUeQfxvLMR8fqEJFExYnf4P5Ag== X-Google-Smtp-Source: AGHT+IHS+BryDEEtmNxzlUYpHFP2Vylk4IMw7NdrVHT9Zz88tYDqIYsZBl3RaqDDMZkpfw1iNPPo X-Received: by 2002:a17:902:ed04:b0:1dc:fb5:6f36 with SMTP id b4-20020a170902ed0400b001dc0fb56f36mr2316487pld.32.1710434059986; Thu, 14 Mar 2024 09:34:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710434059; cv=pass; d=google.com; s=arc-20160816; b=SKFJxiMkl12gyA53+FAKak6QAkSI9Cu01T0Mfa6VYtA8g3JrYtUv2ran/WtzwnzuX9 BmanNbPqhqbIqBAZmk32ySc91jzw6EkFYCOazcawCEtyCLHIg59zGQo8fLz6KjRyjEwc Zy+bQOxY34VHppldvL0TEnbfzhNxGQgOftNsE51IVCBlxGRMZd/i58UMy9Bu9UsgafxA S63c3xZ5YWaa3HNpqqAg42rWqbJuWb+WhkZAtSKy7cFtOsQlpoBkBjNxVTamreSWYa+2 a1V1/NT4z70UBCQKJVRkVNf8hOKUtWr0soGrGTAV2pVocriZLzQoYoeKhD9hEH50JhNr zn0w== 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=GGF0W7br1YH0ZUlowMCaPMKKH8Q1iNP76Vr0o+a0Qno=; fh=3t0Af8Y7MsGqc/HN9a6EvOaQwL3aqr7XADw5df/kXxE=; b=MKpupaYebA5flt8w7nfxI7zLQN4hAUzWB2AYusPXC+1UEvCENykC3T8c025aq44WBW y9eRa7DhVvQzqDnrHyPDRPdUXtrpgm+MfAGs6WyHcKjV7D0WnLt4BiGboNziKBQxg7r+ uYFANbxuMHDfNKX7JEqDN3LL5K/HA7jyOYiHN72mOIL8wXpOm+5AjoLsrBvoWDRrDyIf /RFoORzwwSZdZpYf8KbmyvQvdsOQXpis1nx7M5vwzno9kSqeFDyeL/iVeaNUSZspr38X P2csR6woKkNhef7ago2bEQovAKAt7/i22xGnRmHusYd6q7h1mwMVUK8HWR3e7qPF0GRW t8zA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=JSAM8cgc; 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-103576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m18-20020a170902f21200b001dda53c3867si1647628plc.648.2024.03.14.09.34.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 09:34:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=JSAM8cgc; 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-103576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103576-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4E938B20E96 for ; Thu, 14 Mar 2024 16:34:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92FEF73526; Thu, 14 Mar 2024 16:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="JSAM8cgc" 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 A5A802C9E; Thu, 14 Mar 2024 16:34:09 +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=1710434051; cv=none; b=Q+/xA+rfHPafY5atwuUetMjXlxqnW5WMj72ufs7RvMvkeppc16IAWw7+kFXWnUu5BBdWSV6Mqay3obY1mDxK39c+HeZ1p2qQnyiQ/G+3q5L32gQSlenqGTEYnBSuxwj6dc3T7aarGGgPrZNgfU/Rb58HX4g453CVUoZHBqh3YTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710434051; c=relaxed/simple; bh=kibFCeQMtEz5xXusvehuh0Ajm4crimAZT3g/L1kygAs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AxVNYmM+6srP8Su4exDTsj6sayGCk0SZc2SLgDYxkdLOSOc53uIZSiWXHhvi+Ie53P9HK7bTQO/cujhbRa95E25JVyrWN6TN6pvorrJmid9Pv2Dwoz5p/YN4+OIoGDCH6a8GmQrHa7TnjsdChcjWtTPHyTKX2kvC1XwVWbTKYuM= 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=JSAM8cgc; 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 9E10940E0196; Thu, 14 Mar 2024 16:34:06 +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 8u331dPGBT4t; Thu, 14 Mar 2024 16:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1710434044; bh=GGF0W7br1YH0ZUlowMCaPMKKH8Q1iNP76Vr0o+a0Qno=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JSAM8cgcbWNcgxL5xkU6azEPrkz//J+mlQKFJ/7VqRuZZv+Uwu2dVlcW7GpSsD8K1 jGurAjPDQXcf0lNcGO20/AXzsa+stfPbYHuY6Zr47bNGeYgqfq8LjQHc+hQqwMV5NT P8ilKqJBqq+JAxMMIY/54tgtojeeOlTXp/u4t2simmbbg/zsJlmxfcxCXf9f1GJhvx y4n6MLLdHSNcYzkQ49D/xrkolApNRt9UIh8a5MwLKKUxS8gETCwWi2NFhGuSjz42uK xJ+M3I4YiPyVe8gvYa8ghAYu9gv9PiTIk+KoyNx3I6UTev0DBFJJuUT9waQKrv9T+K Z4hasRC9L8UjFNa7tyKaj+EDdUJnEBTlWB1RnIO3pQNWIhy50KKlW8sUFZc71xMva0 gdg6livm0X7k1KxPJjo2droDcfx7XCayZX1JIE5OLjYYC5AVd4uAbXMqBfeDoB6qJk EFZQAzxSV+rxEU4h+RkxuerWIwJIXdVJi0Z2MNIIOhz8YwnOzlo73fN05fsNk0pGj6 yGGOlMYUFxWB8gtuBxXnc4uLS4uWZkLTgmNEvcrcPRcC9mR9PR/Wby5EXFWNEugTfi fkQqkSSMFAV3KW/SqtHEEVg2mircpzHLR/bcvrRK7nb9q1Acu2ttVHZpHjYC2glhrd nIXWKv4LaCeAHb3Mzt/TL/ak= 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 3C91240E016B; Thu, 14 Mar 2024 16:33:46 +0000 (UTC) Date: Thu, 14 Mar 2024 17:33:45 +0100 From: Borislav Petkov To: "Willgerodt, Felix" 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" , "jinisusan.george@amd.com" , "matz@suse.de" , "binutils@sourceware.org" , "jhb@FreeBSD.org" Subject: Re: [PATCH 0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts Message-ID: <20240314163345.GBZfMm6Ve5QMY_xPjl@fat_crate.local> References: <20240314112359.50713-1-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 04:25:44PM +0000, Willgerodt, Felix wrote: > I am wondering if it wouldn't be easier for everyone if corefiles would just > contain space for all possible XSAVE components? You mean we should shuffle out from the kernel 8K of AMX state even if nothing uses it or the machine doesn't even support it? That's silly. Please have a look at this: +struct xfeat_component { + u32 xfeat_type; + u32 xfeat_sz; + u32 xfeat_off; + u32 xfeat_flags; +} __packed; What is wrong with having a blob of such xfeat_component things describing the XSTATE buffer and parsing it in gdb? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette