Received: by 2002:ab3:5012:0:b0:1d7:b7fe:f8b7 with SMTP id y18csp3089343ltb; Tue, 9 Aug 2022 12:25:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5OkTt3hAXqTfXxTNw8Xg+ze76ce1YnkvEuIRTO2+zhaWOQP+DEvu6SKflCGg9+1KxDSC5y X-Received: by 2002:a63:4711:0:b0:415:d09b:1d33 with SMTP id u17-20020a634711000000b00415d09b1d33mr19924558pga.469.1660073137549; Tue, 09 Aug 2022 12:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660073137; cv=none; d=google.com; s=arc-20160816; b=rSqvucaj6P+AJ5KNwNKJARbLjrPpHZ86Ac1lpbVCU56iFLZ6axbXLODB08p54xw/Mc zvgPWOz26/KXqJkoO9PdvQwj6RrN3NrBgfFaX9hMBvkJqC9amtRrNNNUyxF7glF0dCH5 lXPXh20bE2WYzaNI3laY67V3BcGD3lzhard21tvUEl2kh8FQo+0FsiNvgAZWYwOkZwCO qX1G0hzqYZ1BN7QkZ4og6qIyU+4T+qth1YsyFdjeDZubB/vdkjER4Ts8AT7/LcFHj0Mp NF9+/NvO+E6kRhXqwJeUSL43QCrnBqTcrrk/JuVD2PknBohwgp4Vuin2ijqOCZOGyxAv puAw== 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=HAWeFjEr6a86qg5T2PUHfhtUCjZcdPiI5JbTaTzEVlQ=; b=VP4GCU/sflRwoHdMROsZnjhxMzp7FGMqm0a01MjbO34iFo/WLb7WOyUlnz/GcLwPpj SOyF+qV5Hh6n63abCBO8Nu1EI1d2XK1jSyExRlzUBs5TLUyLjgKJZQzyw5pkyQhQDddk oG0m0IwGHPgiFybo03Y5IfSxNUNf2vSeVRUmta3edqIehjFvvUJjkQo3jqX21iGz5Hkg tLbrqpRe/HYIUYD/KNKBRDB5K5NQqSo05hdhyaTef7HuMXPnrSmF5GabO2tmWYrqMjvk L7vIFyHeJsoSfoxymjc36dloKp8gNtJE7MjLofTmFGubH58dTNx9breSOhDpoCNKuh8X MhnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=h5xJ6rCb; 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 q8-20020a17090a9f4800b001efc1b228f4si17587232pjv.104.2022.08.09.12.25.24; Tue, 09 Aug 2022 12:25:37 -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=h5xJ6rCb; 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 S1345292AbiHITHf (ORCPT + 99 others); Tue, 9 Aug 2022 15:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348266AbiHITGg (ORCPT ); Tue, 9 Aug 2022 15:06:36 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25F9226130 for ; Tue, 9 Aug 2022 11:49:53 -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 B3C051EC0554; Tue, 9 Aug 2022 20:49:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1660070987; 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=HAWeFjEr6a86qg5T2PUHfhtUCjZcdPiI5JbTaTzEVlQ=; b=h5xJ6rCbwZJLqfKKmiXghsOccehJCw/2uaI1NHjuiTBzpNtlQnTqiHGGIhX9tMH6EoCPeo st9B+gkeKhN6dioHjHWgcA08VZ9Vwh3y+ZOj7UZGuupa43FF/pL8+SIT4cxcP8jFfqp9xQ 70eStUxzMWeyA7L7nxEHJZPHMtAQ06I= Date: Tue, 9 Aug 2022 20:49:47 +0200 From: Borislav Petkov To: Ira Weiny Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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:38:03AM -0700, Ira Weiny wrote: > Thomas did a lot of work to make the entry code generic. So I was > keeping that work consistent. This also helps to ensure I did not miss > any places. How about you worry about the other arches when you actually cross that bridge? > I don't believe this is correct because instrumentation is not enabled > here. Why do you have to run arch_save_aux_pt_regs() with instrumentation enabled? Patch 5 does + struct pt_regs_auxiliary *aux_pt_regs = &to_extended_pt_regs(regs)->aux; + + aux_pt_regs->cpu = raw_smp_processor_id(); only? Why does that need to run with instrumentation enabled? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette