Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1091333rwi; Thu, 3 Nov 2022 00:28:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xCg73/nFoMKGMoTusuMrrjZAvJM8+kJuYmQTofyN+XaUqueCRIPz8QwyCXsZBTTF9dDPv X-Received: by 2002:a17:907:8d07:b0:7ad:cdf2:7b66 with SMTP id tc7-20020a1709078d0700b007adcdf27b66mr19475851ejc.699.1667460514962; Thu, 03 Nov 2022 00:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667460514; cv=none; d=google.com; s=arc-20160816; b=mZ/tbWhbwtWysDA4rv+SxXq0os6hwPV7hN1CWFTZrxZoR0KlyDUUtJCUQGfOUbYWgn 2X9o+cqR86YzTdTX6CZlPAusAOSHQxOQHwge5+9bh1YGDA4hxLUky7Ui5PLJzmMlY5gM hMR1y4hobYtOpMj3rwyNb8jYD1zqvt7Nc2g/cY/mi9bZJbFgofD7wJ4yjBUG+V+MULH5 1N6yk5LoOwavP2ptAOoc7edsO49XItDrujgwK9460mQcXs460uXENNJycIlZEc7Zz5LZ o8Nu7cTaoaij677B7ciZBPtTl+Jiayz1F8hxnHKzc8rPZ6HNMv/IcBrglf2BlUyQ0a25 nTLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hhVVFU4gv+0KPdkJhZ6Bsgp0nMXVzSegBp2GVEhxHuI=; b=hT+hxPAMqZcmzQIdktrs8om2hZFn0fnH1TZmmG6tylKVgeT42LydfOni1APyM+1NHl 1NiHPET0eQ8m5r/kYGY1TIqkj8fYTaBYwJxsJh2DGEiEFB7C6auad+c+S9LaIrzz+x25 sdv3i9jyCIPUT8ZJlH4itfde8MFyjh7+16sJ9s5otJNLDrX3DgVnFFh5gQvFi9fpmQFa ungsg+2GQvd8waKTXRaAk13Z8r/a/Q0v2oIrOrh9KUrLrGFBUByx0GrptXxjIHnQ4KDn +x0yVuxawjM4bDMmMzJ/uh66l0aufsNtoDB1ssqyx4WKHPqenqz5RvOX7kJntAXl7/LK J56A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h9I23FTp; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a170906111400b007ad8ba75a29si291269eja.359.2022.11.03.00.28.11; Thu, 03 Nov 2022 00:28: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=@linaro.org header.s=google header.b=h9I23FTp; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbiKCHRJ (ORCPT + 98 others); Thu, 3 Nov 2022 03:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbiKCHQ5 (ORCPT ); Thu, 3 Nov 2022 03:16:57 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B18D62 for ; Thu, 3 Nov 2022 00:16:54 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso2670750wme.5 for ; Thu, 03 Nov 2022 00:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hhVVFU4gv+0KPdkJhZ6Bsgp0nMXVzSegBp2GVEhxHuI=; b=h9I23FTp6GIOXmio03YkEg/XABkIyK7okfyOacacDCySEptlxLcYcKstMetIpqEjVI AJxxtkE/wdXbgKxacBRTI0vKPMD7Lrwttr/WvlHH6ej0kR33MU05lAqiRuHOXS6eYgUi 5D/WB/7tpxiogfi3huBIVAcoj+aw5jR0iw+raivB9st+zpUrHhjUaefLK8xl1XeXGROT jIYtNJVpBXb1lhi22kZeWS2z2s2scGKIObYA8G99yKRsKrD7Waw2HL3AJk86rNi+kcwk ldYfFW2HEUS0Ngd3K7BW6C8SpUqOYnm44amyRmlRCLpiKmxp0dOvOZKAUgifFtw1/6bS zu8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hhVVFU4gv+0KPdkJhZ6Bsgp0nMXVzSegBp2GVEhxHuI=; b=PZxmLRtIEYoA6HXhwtRSEGpNHH2W2gfUWUUcBK+TfvKlM/RcUiPfB13jI604goFM5D ose/PPUiRFqHTL36LVznfPrtaEDubccVMZ33o1L87h7WRqr0dfUpo43ibw5hmnz4AiZV 3E2W66dkKipEkWbCJqDMjz/OTjrdXW6usIcvcI4vPbCjN5JMJAABcXCIAKTY4PMybSEF 5ez3yfHAUa6/x8UGEqw7hZmIVRhsopLD5TNYR7oqGnKkDDAjwXPMYLoUrS/oXAnBACCb 4eEY8WlENmQ8sKm9TjpWlsIgMUk8MPekuRM0hsAU4Ug/9SpEIVd5NHI8AcYpgyLlSyjA xmow== X-Gm-Message-State: ACrzQf0wn7BEujW1H0tIT1eMy3Zgi20jTu9PaetTSXNASo24LMUvjGqm cVxemkxaRBWeWs0/WqXld5kbKA== X-Received: by 2002:a05:600c:22c6:b0:3cf:88bb:3a95 with SMTP id 6-20020a05600c22c600b003cf88bb3a95mr4075812wmg.71.1667459812670; Thu, 03 Nov 2022 00:16:52 -0700 (PDT) Received: from [192.168.11.175] (216.red-88-29-181.dynamicip.rima-tde.net. [88.29.181.216]) by smtp.gmail.com with ESMTPSA id p22-20020a05600c359600b003c6b9749505sm4601041wmq.30.2022.11.03.00.16.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 00:16:51 -0700 (PDT) Message-ID: <5aaa19b8-da75-9a3c-634b-d4c26f77943b@linaro.org> Date: Thu, 3 Nov 2022 08:16:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 25/44] KVM: s390: Do s390 specific init without bouncing through kvm_init() Content-Language: en-US To: Sean Christopherson , Paolo Bonzini , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Matthew Rosato , Eric Farman , Vitaly Kuznetsov Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Atish Patra , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Isaku Yamahata , Fabiano Rosas , Michael Ellerman , Chao Gao , Thomas Gleixner , Yuan Yao References: <20221102231911.3107438-1-seanjc@google.com> <20221102231911.3107438-26-seanjc@google.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20221102231911.3107438-26-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 3/11/22 00:18, Sean Christopherson wrote: > Move the guts of kvm_arch_init() into a new helper, __kvm_s390_init(), > and invoke the new helper directly from kvm_s390_init() instead of > bouncing through kvm_init(). Invoking kvm_arch_init() is the very > first action performed by kvm_init(), i.e. this is a glorified nop. > > Moving setup to __kvm_s390_init() will allow tagging more functions as > __init, and emptying kvm_arch_init() will allow dropping the hook > entirely once all architecture implementations are nops. > > No functional change intended. > > Signed-off-by: Sean Christopherson > --- > arch/s390/kvm/kvm-s390.c | 29 +++++++++++++++++++++++++---- > 1 file changed, 25 insertions(+), 4 deletions(-) Reviewed-by: Philippe Mathieu-Daudé