Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6402292rwb; Tue, 9 Aug 2022 14:51:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5G1ZdRPyTYkFsjUYD1mOqj3Dbv8IbwO7NABJK7Ted8UQaSRHUgaOi/7Ozj0lVy39G160kj X-Received: by 2002:a17:907:9809:b0:733:1ce:9564 with SMTP id ji9-20020a170907980900b0073301ce9564mr1137824ejc.363.1660081894492; Tue, 09 Aug 2022 14:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660081894; cv=none; d=google.com; s=arc-20160816; b=W0EmEmH3gFDlagueoiA9dG5rz3YH2/A9nfakFmEtYwptRZrFmviguNPpCfStylfo0p vVTtVXwq/5AaWqlx342gA//dSi4wQAV8jzJ3XPRdnPDjtwznfrSOcDcJy/v3T2HkILKZ QU/gEj8SOWYTNG/gklAFx1Kg0A68+PSrJKHuFo5XYiWvaHABB/kPggiU0FBX95JZY+He 11YQnfzl45rp9XLp/BEPkZLpW9owpwpkrTsvZagyAsy9Sc/juvVvecNt0ZF+JbVb/9d5 Qv4Nk2VN4Q7BBe0w2krDc/aVn0DzoSOTEVr33yDEcr4AyNvI8zygLuAAubtB7xaV4i1V 7NAQ== 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=z7EqNC2JC1LQyjie6IGXTeUlMukP0way+PG3jpA030g=; b=a7ERZg9joPDH1mGmtDvqUJRBGf2Z7HN05EiIRvPwj5Nh8+oC1dFErFexusntyrE+IH Dt+emQaieVnnSrRYmyXxmx8H83vnoFHZRiO+uMPc5MFf+NVvS9NQchwvItwzUjFov2FR pDQLwGx/sFZnDldhzOn5GXce+4HCQerSVaDGNaIrTw622KNFi0Dk0QC2hGLp1H+vTqD1 uXLzmJdpHvNZ/iXx7BGa10lAtVDwEw4DDhjoGI5ueKxOR/YXP8JyGYFjM/LLIbx1dB7s oWZsr0Cn4gF5WJf4oun12JuP6qpK43rmEvXByv3k1UF7VrQ5zIEPgCDHvzclrAOClkHi rVLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=HuASkrid; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a170906c41600b0072a51fa07a2si2272181ejz.296.2022.08.09.14.51.09; Tue, 09 Aug 2022 14:51:34 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=HuASkrid; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbiHIVjD (ORCPT + 99 others); Tue, 9 Aug 2022 17:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbiHIVi7 (ORCPT ); Tue, 9 Aug 2022 17:38:59 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2F426AA09 for ; Tue, 9 Aug 2022 14:38:58 -0700 (PDT) Received: from zn.tnic (p200300ea971b9800329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:9800:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4D96B1EC058B; Tue, 9 Aug 2022 23:38:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1660081133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=z7EqNC2JC1LQyjie6IGXTeUlMukP0way+PG3jpA030g=; b=HuASkridB9JKtbKczbJ6+nZQnXupD01ZyV3+uZ4NHXJimPmKjB5KVXpUQDXOl4noh1iab+ EshmxEmARNQf/WN7BVm329ZQNSTKWXIqeLG0aX/xJ7jACViZiP2iM9wXdjOBngLmQR6h3H AbGepgLX+EBUJ9ca92ULDdF1Dr7KDwQ= Date: Tue, 9 Aug 2022 23:38:48 +0200 From: Borislav Petkov To: Thomas Gleixner Cc: Ira Weiny , Rik van Riel , Dave Hansen , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [RFC PATCH 2/5] entry: Add calls for save/restore auxiliary pt_regs Message-ID: References: <20220805173009.3128098-1-ira.weiny@intel.com> <20220805173009.3128098-3-ira.weiny@intel.com> <87lerxqfv8.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87lerxqfv8.ffs@tglx> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 On Tue, Aug 09, 2022 at 11:14:19PM +0200, Thomas Gleixner wrote: > Ira is right. If we want it for everything, then the generic code is the > right place. But what is "everything"? Currently, and AFAIU, it is for the PKS use case on x86 only. I'm not saying it should not be done this way eventually - all I'm saying is we should not design "preemptively" before it is really needed for other arches. Unless putting it in generic code makes it all simpler and cleaner to do, that is. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette