Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3927778rdh; Tue, 28 Nov 2023 07:26:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiMoNVRM/J2RCeGIqgMS/wU7FyT5MOlx0D4mBAmOKIrTtNs8kyVWd7ZH0Fz67Sk/TrBo0O X-Received: by 2002:a05:6a21:999e:b0:18c:382e:48f1 with SMTP id ve30-20020a056a21999e00b0018c382e48f1mr11853373pzb.7.1701185172557; Tue, 28 Nov 2023 07:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701185172; cv=none; d=google.com; s=arc-20160816; b=NcsolSNjc5Vh/e0IIdxjVlep+PMHqWdo7lbl1OOJJ7+xrIWwq7ciuxBxY1vbkmvlui jgwIbtONR8QMYzazERfmWMxayvkqHnK2b6hh10MIQVlY/dJ3HnMA9GFO7q4NF85HX+Ey 4iO4E3DoNrO2q/CujVwXPr1XuoawD6wNVjvVIjRvI8D0FR9fgttuS/8Xm0Y5OMvijdHV FlPqbAw0GavN+WG0z+pQd0tzc2H8dg3YrbkJ9qkH97130DKEWbkX9LzvLPseCpAaaNMM Frq9MsW+EfqIZHU+KoiVFEyqxBeVr7ARZXTUjAtqdXootIxifpeAqS2Tdag7AscksgVV AN4Q== 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=b8kwNDDb/tymHpQVlkI8A91DHBnyujPGQHRX1wsU7tw=; fh=L/K1b+ZMcthi5H1EdDes0epK/9IJP0oNvXJLiL4azL0=; b=NTNCQN7Wlq2MiYVYK1EGYEIvPqD/016lRaN0l++xKf/1n5y4LTmE6KfC7Ax3zjcjDf aVw52TbnSyeyYWLDYxVKk1JYA6N0enY13ZutJmTukuNnzZ4xIXg2crrGBNUi/aO7EZrM 7CLgQuOdJL0AL2S/MNSpKdwloyl7yLOwNkgvn254IzL46N1KWn2HJlUky29VcvtB+Bfc xXb7UXO+LM9GjsCQbMdIXMLPpTZZoPQD/vUElXJHGoTyIHqkGFHdWYNsdImzyqwtwPmn Khld+ff0j6Ohd8tbHrHQ7SDWBEezibZgOJBgHb3uq4QerCD7EREQLZxjODtObQSERJyG sgOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Q08NRJnA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n16-20020a635910000000b005b9b68add80si12365020pgb.361.2023.11.28.07.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:26:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Q08NRJnA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B3639809B74E; Tue, 28 Nov 2023 00:52:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344267AbjK1Ivv (ORCPT + 99 others); Tue, 28 Nov 2023 03:51:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344272AbjK1Ivt (ORCPT ); Tue, 28 Nov 2023 03:51:49 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D78AA7; Tue, 28 Nov 2023 00:51:55 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 1AEFA40E0195; Tue, 28 Nov 2023 08:51:53 +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 ChluQ_0bI5c3; Tue, 28 Nov 2023 08:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701161510; bh=b8kwNDDb/tymHpQVlkI8A91DHBnyujPGQHRX1wsU7tw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q08NRJnAt21ZSfXI9PipunbDM7nORGQfk8q2MESUfrbhwdKcDNj/lvfrYaXQO6WrR Uu/ou1jioWe9ismICRfRUVg3d+FQm/wPx6FZWqYIkuOj00lA7FTXRPgomSFC12JB9p jx/Z+egKyrd9s+V6EUpP+PM29kiHtGxAEP6D+mj4x/WjUbMc5t6epBadUQmbQ6T59d OHk9CXHFlXeMht5fKmdxwhaqaJsJcYjQcCwAG14XuoCwOAs3qO/8qwx/JlqJ47/JYv +APDpeBEVPM7yMnVxkTaHX1cKKlYOzNJVz9G0G08aIT//tOtvT3TSq6/suZGzKM0iW 3xkbwEKeMxRkIQ1+WXUKcxmhbpGn8ST23QukmzUcDnTznWywJX4RBZBJ8xABUD/x/q LpqrCLx8GqTQcvX46p79XCA7vm/VHTiyKe0iNeXxQqdC6Df8FkqJr0G6fi36OCuyGb m5Jnl1QGqjQufT6g7fBC7LdpVg2DsriyG5b8QRGrNW+ZxiZWZHnDQ/wPnEwrzPEhcD M/86WHzJqxUVJPuatkx67BNxXkgs8VEkb78/GQIFTZBVSPRw+rz5eNeMgEWAoMpQX2 q2gDBvCHdO54qtQ99xUVX3BvzTocJHZahfSUqyeY3gOuejIEZg/bj1NCSFqFY7mArL sGFHikREKV+Z0TDiEnXHYFYs= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (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 2C26740E0031; Tue, 28 Nov 2023 08:51:28 +0000 (UTC) Date: Tue, 28 Nov 2023 09:51:22 +0100 From: Borislav Petkov To: Xin Li Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, luto@kernel.org, pbonzini@redhat.com, seanjc@google.com, peterz@infradead.org, jgross@suse.com, ravi.v.shankar@intel.com, mhiramat@kernel.org, andrew.cooper3@citrix.com, jiangshanlai@gmail.com, nik.borisov@suse.com Subject: Re: [PATCH v12 16/37] x86/ptrace: Add FRED additional information to the pt_regs structure Message-ID: <20231128085122.GPZWWqCrPYnzB8BqFB@fat_crate.local> References: <20231003062458.23552-1-xin3.li@intel.com> <20231003062458.23552-17-xin3.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231003062458.23552-17-xin3.li@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:52:12 -0800 (PST) On Mon, Oct 02, 2023 at 11:24:37PM -0700, Xin Li wrote: > FRED defines additional information in the upper 48 bits of cs/ss > fields. Therefore add the information definitions into the pt_regs > structure. > > Specially introduce a new structure fred_ss to denote the FRED flags > above SS selector, which avoids FRED_SSX_ macros and makes the code > simpler and easier to read. > > Signed-off-by: H. Peter Anvin (Intel) You and hpa need to go through all the patches and figure out who's the author that's going to land in git. Because this and others have hpa's SOB first, suggesting he's the author. However, the mail doesn't start with From: H. Peter Anvin (Intel) and then git will make *you* the author. > Tested-by: Shan Kang > Signed-off-by: Thomas Gleixner > Signed-off-by: Xin Li ... > union { > - u64 ssx; // The full 64-bit data slot containing SS > - u16 ss; // SS selector > + /* SS selector */ > + u16 ss; > + /* The extended 64-bit data slot containing SS */ > + u64 ssx; > + /* The FRED SS extension */ > + struct fred_ss fred_ss; Aha, sanity about the right comments has come to your mind in this next patch. :-P Just do them right in the previous one. > /* > - * Top of stack on IDT systems. > + * Top of stack on IDT systems, while FRED systems have extra fields > + * defined above for storing exception related information, e.g. CR2 or > + * DR6. Btw, I really appreciate the good commenting - thanks for that! -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette