Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29BE3C47422 for ; Thu, 18 Jan 2024 14:06:48 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.668768.1041185 (Exim 4.92) (envelope-from ) id 1rQT2R-0004AW-4q; Thu, 18 Jan 2024 14:06:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 668768.1041185; Thu, 18 Jan 2024 14:06:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rQT2R-0004AP-2I; Thu, 18 Jan 2024 14:06:35 +0000 Received: by outflank-mailman (input) for mailman id 668768; Thu, 18 Jan 2024 14:06:33 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rQT2P-0004AJ-PM for xen-devel@lists.xenproject.org; Thu, 18 Jan 2024 14:06:33 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rQT2O-0006L7-S3; Thu, 18 Jan 2024 14:06:32 +0000 Received: from gw1.octic.net ([88.97.20.152] helo=[10.0.1.240]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rQT2O-000216-Mm; Thu, 18 Jan 2024 14:06:32 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=4FU1svIlywXHLE8iOGpk/EirDNgiGDS7XZJ2gmcHdso=; b=Ak3aT7ITIggO/9v45xNbDkBKRv w8sAfrKRgdynY0cqiup+cV4Cz8nXc3P0xmpu56WbT0iMahTeRzhKJS2WOs9HxKhPmY9aRou1LUVTv 0HmUIDsoxEv6hSyvs7qxV4q/hKcug+Zr2NdOpZMXZUVoU8Dy1XwAtjucMuqRPqNyrnH4=; Message-ID: <3fd4bafd-75f8-4352-bee2-1fa6dc64a9d5@xen.org> Date: Thu, 18 Jan 2024 14:06:31 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/8] keyhandler: don't pass cpu_user_regs around Content-Language: en-GB To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Stefano Stabellini , Wei Liu References: <1ab231ec-5e3c-4662-8530-2213bc52bb7c@suse.com> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Jan, On 11/01/2024 07:31, Jan Beulich wrote: > There are exactly two handlers which care about the registers. Have > handle_keypress() make the pointer available via a per-CPU variable, > thus eliminating the need to pass it to all IRQ key handlers, making > sure that a console-invoked key's handling can still nest inside a > sysctl-invoked one's. > > Signed-off-by: Jan Beulich Reviewed-by: Julien Grall Cheers, -- Julien Grall