From patchwork Thu Jan 11 07:31:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 13516845 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 144A0C4707B for ; Thu, 11 Jan 2024 07:31:20 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.665924.1036253 (Exim 4.92) (envelope-from ) id 1rNpWw-0006Ex-Db; Thu, 11 Jan 2024 07:31:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 665924.1036253; Thu, 11 Jan 2024 07:31:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rNpWw-0006Eq-AT; Thu, 11 Jan 2024 07:31:10 +0000 Received: by outflank-mailman (input) for mailman id 665924; Thu, 11 Jan 2024 07:31:09 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rNpWv-0006Ec-D8 for xen-devel@lists.xenproject.org; Thu, 11 Jan 2024 07:31:09 +0000 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [2a00:1450:4864:20::332]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 62cd6c12-b053-11ee-98f0-6d05b1d4d9a1; Thu, 11 Jan 2024 08:31:08 +0100 (CET) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40e5508ecb9so23642955e9.3 for ; Wed, 10 Jan 2024 23:31:08 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id n16-20020a05600c4f9000b0040d62f97e3csm4686253wmq.10.2024.01.10.23.31.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jan 2024 23:31:07 -0800 (PST) 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" X-Inumbo-ID: 62cd6c12-b053-11ee-98f0-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1704958268; x=1705563068; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:content-language:cc:to:subject :from:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=M+5CGOukjfQO94V4R3Cj4aE/IhM5ucCz6YzI5SlI/Cg=; b=NV9orLaBBS8oOfNri7NmlWI9J9hzSpMUaFkfb31XbLD8j8WnTNGi+fDeZT0w2571X9 ip5/c2nwON06AfpHq3ygXzP+CRj9zhZTQYSCmRAmXmu/YJMuHVetI1ix2P25JRJ97M4e PV+YEq+rMw8cKguN5dFAm8BSr/bJNTt/Ver8M0LTeBuc2HU6nkMcbldfV0ucyFfpkmN8 HVk+4Ewt5yG5kRA0/v5kHgjWP0Z+jaHsV8w+ahXhWWiguwBCjXcMOFcGnEwGA2M9sJhH ZmfRS0s/rbv9NzYejzkZBIKOIdImZhsDiJkFytN/2b/lNZJvj9KGrXKIjfWxbEMbowQX 4c4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704958268; x=1705563068; h=content-transfer-encoding:autocrypt:content-language:cc:to:subject :from:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M+5CGOukjfQO94V4R3Cj4aE/IhM5ucCz6YzI5SlI/Cg=; b=BPDWWd9eNvwjNpL7BhyLpXpALLgabet6pHj9J5aFqfaD/VnTqASOAvm0CS8C2j0nNx GIjfKCv3m52bpZSwrtjNkC75wg1zWWrqD5uZV6kG0qWOAJMFN0rtcqHRtJJbREvOMTxK HJAeAxvlddujAF1MO1RF6QxePVfwQRORxhCfVRiFqcTzh+y8FXJlsaVVoqYaJhAD2Pu9 or40r0WnveE4wezCINU5MVaxmetJWg5cPWcdGUL7/BHQHVXF0gbwwNHk9xqQMkiRgXcn mvKjWOJw31QkoljAbQDzLqHKsvJuGtI63ZC7/AbD3+Zd36kcEqCLl8XSAsyJ/QkWqRPN MVMQ== X-Gm-Message-State: AOJu0Yx6ePuvu7PR3N1lGMGWxSxXDliwNM4BAujSJ+fzDIU2L3ijna8f Z1ijmCABijLo9xbmoruI9tAKLlc3y+2jFt6n0lJC6KSVoA== X-Google-Smtp-Source: AGHT+IEJnAO8j2RIu1MH/kul9OKGuKojB297y0gNoHuS1vTbmqiSHrCQOkyPkPaA3t7D4Kv+r6UYQw== X-Received: by 2002:a05:600c:283:b0:40d:9369:697f with SMTP id 3-20020a05600c028300b0040d9369697fmr141778wmk.144.1704958267838; Wed, 10 Jan 2024 23:31:07 -0800 (PST) Message-ID: <1ab231ec-5e3c-4662-8530-2213bc52bb7c@suse.com> Date: Thu, 11 Jan 2024 08:31:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jan Beulich Subject: [PATCH 0/8] limit passing around of cpu_user_regs To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Julien Grall , Stefano Stabellini , Wei Liu Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd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bM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Unlike (synchronous) exception handlers, interrupt handlers don't normally have a need to know the outer context's register state. Similarly, the vast majority of key handlers has no need for such. 1: keyhandler: don't pass cpu_user_regs around 2: IRQ: generalize [gs]et_irq_regs() 3: serial: drop serial_rx_fn's regs parameter 4: PV-shim: drop pv_console_rx()'s regs parameter 5: serial: drop serial_[rt]x_interrupt()'s regs parameter 6: IRQ: drop regs parameter from handler functions 7: x86/vPMU: drop regs parameter from interrupt functions 8: x86/APIC: drop regs parameter from direct vector handler functions Jan