Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2027159rwb; Fri, 5 Aug 2022 11:50:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6AEHUBQi7jH5K58V2mhD5c7EirI10zfKsMm51fahnOsnT0Px3R1mf35bzAiX9znRcFKuB0 X-Received: by 2002:a17:902:c643:b0:170:4585:7454 with SMTP id s3-20020a170902c64300b0017045857454mr2089606pls.79.1659725456625; Fri, 05 Aug 2022 11:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659725456; cv=none; d=google.com; s=arc-20160816; b=keY/en4+6E3tO8PoYDF7zzF/NA1c7cvwIYuqdBlhPzJcdtvQsAxl8/1TL9eGEyXtYH iG066x5HBvIZOq5TJMDQjZCt8hlw8yKOtEgRovfKz4oJzX70/09yEAIRq8H6nAJM/9aj i06B/i/qNlnSAyjzyd7wFSUCYl7+9lY55lA2dgtXvqV8vV+B4qQx/yXa8JgGMKcEjuul aUG9oaDHZFCOEoqxkTOPeeGYRRscJMUdb0jQUDVgWzH5VhzJwcbhWSwfMxkEnuHPnYF9 +YDzP/pDmxlr7PtdKQZLGlNaF87CkYrRczluAzBArr6qXHwQQD1UCDkJdbUoek1ZP3U+ LM7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=DmwuHu21hvsvOgsKDNLFuPbq5lT+wDxtRnbHtufi2oQ=; b=fUVNYUjdgNVHsz4Samz5qDYSPx1o1MMdMYpivXq2sAumF5jLQv3gWF+vMpWdhDTz7I mXmUV12B198hIdzuY3uZ4h8gXiPEZWfUquWgcrxDDCZgD4NZI200/chbuH1dfcCIcyw8 169tVy9utvUxG1DECptWqgQmO+mXtNGlgZexCjijSziTnZCPTkJyqd5LjeYjnAIl4CQJ 2SBbnvHgqmdChzVJCulEhhTax6VrFovsa+j1+QxROxNXondqd9aAfhC0rC4XFjXx9ibC pz1HwEyQXMCEAUSqsKvjTD7e+++WdA/MMC/eaJ335kzts9XOhHNLDQpKQj+qLzHHAmO3 SSlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t25-20020a632259000000b0041bc27c4597si3619761pgm.163.2022.08.05.11.50.42; Fri, 05 Aug 2022 11:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241388AbiHESex (ORCPT + 99 others); Fri, 5 Aug 2022 14:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241378AbiHESev (ORCPT ); Fri, 5 Aug 2022 14:34:51 -0400 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84D227AC25 for ; Fri, 5 Aug 2022 11:34:50 -0700 (PDT) Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oK29p-0000cd-8o; Fri, 05 Aug 2022 14:34:49 -0400 Message-ID: <28914dc436a3f8b3ef39bb5d24b2dbc21cff180e.camel@surriel.com> Subject: Re: [RFC PATCH 2/5] entry: Add calls for save/restore auxiliary pt_regs From: Rik van Riel To: ira.weiny@intel.com, Borislav Petkov , Dave Hansen Cc: Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Date: Fri, 05 Aug 2022 14:34:48 -0400 In-Reply-To: <20220805173009.3128098-3-ira.weiny@intel.com> References: <20220805173009.3128098-1-ira.weiny@intel.com> <20220805173009.3128098-3-ira.weiny@intel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-CBglU9idFPVSVkUgby26" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Sender: riel@shelob.surriel.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-CBglU9idFPVSVkUgby26 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2022-08-05 at 10:30 -0700, ira.weiny@intel.com wrote: > From: Ira Weiny >=20 > Some architectures have auxiliary pt_regs space available to store > information on the stack during exceptions.=C2=A0 This information is > easier > to obtain and store within C code rather than in arch specific > assembly. >=20 > Define empty calls to architecture specific save and restore > auxiliary > pt_regs functions.=C2=A0 Call these functions on generic entry/exit. >=20 > NOTE: Due to the split nature of the Xen exit code > irqentry_exit_cond_resched() requires an unbalanced call to > arch_restore_aux_pt_regs(). >=20 > Cc: Rik van Riel > Cc: Dave Hansen > Cc: Borislav Petkov > Signed-off-by: Ira Weiny >=20 Acked-by: Rik van Riel --=20 All Rights Reversed. --=-CBglU9idFPVSVkUgby26 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmLtYskACgkQznnekoTE 3oNJzgf/dq+ctvpJyQvpn3EdDgKiNPW+eCTFYvQHZPXLzrUhcyJf0kzB//4r03QI xcfzCBuV/igrUS8LD+SqT9KYCH4IpanQrvuH5KE7NIzA2FuTsvOvAwVAqD03jVRY KIwvpM+Veamrscn6d013rTOpujh2fgStq6ckH0rHopFsVFEBeOsuj+tu3dLsU9e6 4I30R+/UELurMUBIt2cQFLcyh2Sf87BJ2owelkq/2hPgqsay0VGV4GaRykyYI7hK RRvpw1ugWy2saqJhF9AgdZBihtjHBE7uqSXhvzmvzd1+VH7vDU8NOMoA3sBRJIYy GW4aWaaIR/867n6s5hZPjj7kndy+wQ== =+cai -----END PGP SIGNATURE----- --=-CBglU9idFPVSVkUgby26--