Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2015992rwb; Fri, 5 Aug 2022 11:37:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6fQ1809/ksp5bjy7cK771FFElDF6RI8MutCkm/8bfuF6AG7Jx15gKErpAgsgMRKGYKphUD X-Received: by 2002:a63:5b21:0:b0:41c:2292:b2e7 with SMTP id p33-20020a635b21000000b0041c2292b2e7mr6840343pgb.46.1659724629949; Fri, 05 Aug 2022 11:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659724629; cv=none; d=google.com; s=arc-20160816; b=k4HB+bj/9JocUZRIAaFY9FY5yt9AgY3t22wTd6jpbYsrLlK6ZZNZVIDC1c7NBO0JdG YdvqnxI4YN1AEJBu4cKJG3OQGXEXcCv2D1hOtdzX70qROmRdfLdo0YTlCZoqbkjecNwv uMKnwailHh2UtV9+kqh0cS0SFcUlmOmiARnrFaam8oLwUMnvhyWH7bQKZqhK7FQF4Df+ YBhmGPUt3IC5DHNgsIZ2BbXkC6GohgcnX9kTGMMS1rqfafaoNt3kpz2xzYAXSqo9/yRe f+Ms7PSSm4FD4tGq4iQ2Tozs4UJvziuXeHXNDFDlTqTo/B+BsaZQm6O8l/xKIR3Sluj6 YtZA== 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=pzWqZM3FzAaK/7j+57DQNM5h0+e/ETSH9V1P8aR5UR0=; b=g8Isv7d/jSaeoHjVzf9y4AfpUgtEfjeCrJEclR+QkGo7eyM+TbfTvYnr6f4niwbXKH GVPIBUkwuUW4tUQhcdWxcLNFvCpLg5Bffesim4lZgVbGRv5KQUMDy+y2AAAJYw+Ru7VU 0oyI6n7asFVHVN/8wz/ocvHcrcSHNlDMKMfHM0fIzSopINv2q96VAeotlNzP2+5ccZ9T PJ/b7Lw1hTKV30baFjlKr6V6o/kJsgzNbkpNNtQ+ihy6DhlUoD8JsBrn66Kq/zGDPGgZ /ysKaIsCG4uhPqU0/vtIDdlIFuSouyx8lvIkwgy1HaeFmsP3lCZ0amLDOK4FS6z4rD1C lPNg== 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 k12-20020aa788cc000000b0050dcf85b9e1si5180837pff.141.2022.08.05.11.36.55; Fri, 05 Aug 2022 11:37:09 -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 S241363AbiHESdu (ORCPT + 99 others); Fri, 5 Aug 2022 14:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241324AbiHESdn (ORCPT ); Fri, 5 Aug 2022 14:33:43 -0400 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508157AC2B for ; Fri, 5 Aug 2022 11:33:41 -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 1oK28b-0006gI-Hj; Fri, 05 Aug 2022 14:33:33 -0400 Message-ID: <82b27eafe952c9f5a8ea6a8bcd902a38e2b2c77a.camel@surriel.com> Subject: Re: [RFC PATCH 1/5] entry: Pass pt_regs to irqentry_exit_cond_resched() 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:33:32 -0400 In-Reply-To: <20220805173009.3128098-2-ira.weiny@intel.com> References: <20220805173009.3128098-1-ira.weiny@intel.com> <20220805173009.3128098-2-ira.weiny@intel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-JFh7ZqUa7s9ijmyuP8qU" 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 --=-JFh7ZqUa7s9ijmyuP8qU 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 > Auxiliary pt_regs space needs to be manipulated by the generic > entry/exit code. >=20 > Ideally irqentry_exit() would take care of handling any auxiliary > pt_regs on exit.=C2=A0 Unfortunately, irqentry_exit() is not the only exi= t > from exception path.=C2=A0 The call to irqentry_exit_cond_resched() from > xen_pv_evtchn_do_upcall() bypasses irqentry_exit(). >=20 > Make irqentry_exit_cond_resched() symmetrical with irqentry_enter() > by > passing pt_regs to it.=C2=A0 This makes irqentry_exit_cond_resched() > capable > of handling auxiliary pt_regs in future patches. >=20 > Cc: Rik van Riel > Cc: Dave Hansen > Cc: Borislav Petkov > Signed-off-by: Ira Weiny Acked-by: Rik van Riel --=20 All Rights Reversed. --=-JFh7ZqUa7s9ijmyuP8qU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmLtYnwACgkQznnekoTE 3oP1FQgAq/4oo6OX183QaOkso7rRPPrz42VmLpnAYpRbCi6GYzGZoFVrActKJlh1 LnC28neeVEwVQmhYKzX/DPfTjeY+CTzyRG1NHb4PtZlLU+glH25HqVF4ag8YRnmg ULrXIq47s8WkfQya1Ps6a1ypp1B4hO5nAaOqMzsv5d9vynG3sCs5MD1PQu97UVUy HwPzeaXPHcYQ8L9Vm7goEW4DlQjBZvDK24GtW8/24GCaIEeoEXXHxgVbZicM9eeT R29FN520lXJEvINZpvvi5PBIbrF/5gV37plJesGyu/DWP8xq4NknFhg5F0SuCpPj SuQz2fiaSDoQQrPlizq35kI39cVnKQ== =c72J -----END PGP SIGNATURE----- --=-JFh7ZqUa7s9ijmyuP8qU--