Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3944302rdh; Tue, 28 Nov 2023 07:50:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnk4WuPeCZId9e2dedQjLG3Z5Oxw7zijnP9yx6gHRJ7IPQxmfOObSE0PlsD0JJFsgMeqW5 X-Received: by 2002:a05:6a00:1307:b0:6c2:e10:42e3 with SMTP id j7-20020a056a00130700b006c20e1042e3mr19532677pfu.8.1701186621709; Tue, 28 Nov 2023 07:50:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701186621; cv=none; d=google.com; s=arc-20160816; b=0lyt5fhigpWSNx1jBRmpQ9Utas+/w7X+V0lKbajqBdtw342PXc7KECdQhWeY/I9fiJ CkDAooMsBHCJLnWpckE43wT3XUjkLkzBakeSopj7LgHIlyJPSCTTOtwcI+DQI/3rqXF1 16Ahe2BhSu588CBwRr9iQG7U8CkHednM/Qu0kznzR+UBmrg9FcQjFCLWotYYimXWnnG4 zDGO6Nr28V7ZVjbFYW40MJgjrU00UdA1mddu8bakZyofA8XvJSXzvloRmdxe0JWH9lkS yiNQbwNiXFUapsTOqllBgs9+ULzpNeFcKz6jMpCp6fKuHCcJzjr3chkxeNYwFN2ukaUM As2g== 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=DS2d99Cf/Tm1b0CoskKzTkSL4zfPSaK6CYmxmDpIDno=; fh=L/K1b+ZMcthi5H1EdDes0epK/9IJP0oNvXJLiL4azL0=; b=B/ctUWGi8zqJs4/EpVZO0Df/yWmSUN5RgcqgWN4fp/UkXQahuUkVAAbuXZ9YAp+CbJ 341nhwPFiNypb7/H0Cn+M8eT2vE+RKD2cooIZoLt3Dlr51aIBwbekYLGuOThc7RSLHas C0kol+MoK1X7VmoJIQedFgyM+7F1pnG9bAKHWQe2V/2MtXD98A2wBOpSy7793MLQ7hCR aivuDXrdXa2Jit7OsFxFSD77P5Ey2RaNPN3e+OPGPI06ZUk2lZogoXDHZp0qrb7gP/41 ksg0t8LqVDFFLhq/92tvFE3BvkLzAHUUB47bHydNM08ktd4HL8EtDU1RdTxeyo07on1R qDsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=I8Kl7pOf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j13-20020a056a00234d00b006bceac424f7si12665242pfj.102.2023.11.28.07.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:50:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=I8Kl7pOf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 31FDE82FA57A; Tue, 28 Nov 2023 00:37:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344173AbjK1Ig6 (ORCPT + 99 others); Tue, 28 Nov 2023 03:36:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344157AbjK1Ig4 (ORCPT ); Tue, 28 Nov 2023 03:36:56 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF90AA; Tue, 28 Nov 2023 00:37:01 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D84A840E01A5; Tue, 28 Nov 2023 08:36:58 +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 1vHsmSMNDYS3; Tue, 28 Nov 2023 08:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701160617; bh=DS2d99Cf/Tm1b0CoskKzTkSL4zfPSaK6CYmxmDpIDno=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I8Kl7pOfZkDJ1aauL4p8L+PlN65c8sIR0dkdP1NbqWcLcQY6vEQjYeM/r0US8S9kF RYKot1G8DTIU2i/vJbZ1dY8cBcGfRTw5eFgwVvUfS9BBoA90TBlEUp24OXrYB919e/ Oy9SPBMTF8mwOQGo4ENPJBFKDroY/sp19zB/SlzHi4KLsJ7dwdNlb1E3uwAjDanJoQ vo2I6xeoAedHIyLyWVbyRwoypXxt0W/z9QtACLsVB9EJOZcuTpIzfRI0WQVy6PL0gs lmvT8HdZT00moCakbNxG+hW2JFqsKP3UGOqM6ogwuTCRPnTt7vEHovr6BESHhP7Ghd PrmO7bjwnAbf9slrMSVBPDynMcWeQLLh9sCucQNJyRSFHTD1ls5zbvnTNuutqKbcVd 2/D/sbPwNva3NafVp2mXa6fzDye7Dr0YJO74ghd0IpJ4svVag2MEsEKbllMGPOFaXB yZKZTGXbFd5A0XC5WOguBvIJ+ogDfpVmSLzBtQ8aaFnZiDT5roz378AGxU0Cs0Jl7g cOR129yb77LRWYUT6q9WwvjgaMIebKAbVM5H2TWl293NIL68arozCJwBKM7mI5u88B 1N9KRnvXlfSALDR32hWnUk2p/Kit1WXMb19R1Wxy4zqEb1j33zwAYoVT0pWIswldS1 cDLymiOsuFxx+9JUg1fX4yC8= 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 C01D840E0031; Tue, 28 Nov 2023 08:36:34 +0000 (UTC) Date: Tue, 28 Nov 2023 09:36:29 +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 15/37] x86/ptrace: Cleanup the definition of the pt_regs structure Message-ID: <20231128083629.GOZWWmjTe8l+IwXG5j@fat_crate.local> References: <20231003062458.23552-1-xin3.li@intel.com> <20231003062458.23552-16-xin3.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231003062458.23552-16-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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:37:41 -0800 (PST) On Mon, Oct 02, 2023 at 11:24:36PM -0700, Xin Li wrote: > -/* Return frame for iretq */ > + > + /* The IRETQ return frame starts here */ > unsigned long ip; > - unsigned long cs; > + > + union { > + u64 csx; // The full 64-bit data slot containing CS > + u16 cs; // CS selector I know people want to start using those // one-line comments now but this struct already uses the /* multiline ones. Can we stick to one type pls, otherwise it'll turn into a mess. And pls put those comments ontop, not on the side. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette