Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1129177rwi; Thu, 3 Nov 2022 01:09:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5P//3OPnnUxpfAR4v9rqCggAXIv76EkBlGpSvBIWSraYU2Chj3feCdr9OLXHX3R9LyQiPJ X-Received: by 2002:a17:907:2dab:b0:78d:fc4b:7e31 with SMTP id gt43-20020a1709072dab00b0078dfc4b7e31mr26314804ejc.531.1667462983428; Thu, 03 Nov 2022 01:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667462983; cv=none; d=google.com; s=arc-20160816; b=Enwn9TUVvUWrZ7arYT4+QcLf9Eb0oGwo+hD0B4ZALdFMaUojUaavtxT0TuHa4xJUxW c5GjW5sGZZqMIF+8JOpI9AgD+dMVJfHtYlpsTxOJ37CQTV7dLZUX4WwaKSesFfrx/90/ 3IhwNL7p5jxkHPP+/qQQHfeVaqDPndFEDt6YA53CuyiMVynyLWD+/JBA3POqv7o8TMyW vIoqXLIYygibtmNklguLhItTrFlGB7Y51WXdg0ZD4+n4Gl8OOgTirF2hp96eHEVRPd+R Kwc3jvNCy0NXFYiVkjUoIFSNMuthySxj6hUWoO/3dZacGzGNTXdSDXVq5DwDgVD9wTmC tLPw== 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=6Pdpi+9UoXFmBx6WS1nIzeC5GAA4ErfSd67Sd5AqWcg=; b=sSmFl5SRd98vU9IkFVez0R38PtQh/dsi6aQCz7tN/7yAUOhgW2mPkmD3dMqAxp97bi wj2L+INk6vyYia/2moMi0vLXDj+sfTyAT2EC1OXnDNBZceGVYkMMdFBZkF5aDI0n99yA 4c5WdOXw7NuVsa5huMFJa1Us7pIEhvYY2KsYTmAlkaPXx8GQlUBrdSE+6kPbY12LVWdR n6z86y//lZwhEPvYb1Nue0Km71ChtPkKOAdGu+yL909SCX6koQoiFSFzP9JBXK5JQAZX g8eueOMxHY9ItiRFUrOqJQr1utDcWGVbKdW6zb3rPmvpcF64HNARNcslsO4ptf8EvLj7 RAZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H1aAZTt5; 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 gn18-20020a1709070d1200b007adfc1544c9si687169ejc.37.2022.11.03.01.09.19; Thu, 03 Nov 2022 01:09:43 -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=H1aAZTt5; 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 S230006AbiKCHOW (ORCPT + 97 others); Thu, 3 Nov 2022 03:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiKCHOU (ORCPT ); Thu, 3 Nov 2022 03:14:20 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CB83B03 for ; Thu, 3 Nov 2022 00:14:19 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so2680108wmb.2 for ; Thu, 03 Nov 2022 00:14:19 -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=6Pdpi+9UoXFmBx6WS1nIzeC5GAA4ErfSd67Sd5AqWcg=; b=H1aAZTt5omn1creuvv0ovxmACFg4pOnVWmYHZn4E4lfgT71L/+bkBqMdS2VJqi5qOj YmATL6SnR5o+XQBpr5Zki/b3eg+7a33Y6+MAjm8hsgmFIym9xbyYuh0hkg0prpG2xE5F PuLR8pBfv6BBbgXz9sU9CedCiJ2OZly1K4pMrBC8+JOwPT599bO9tsyb8SJGk4MzThPL 1kCqwm334cbHc7nOfuU0bDlyQDVQIepbwXFRhrNPfzdSZaSvyNIoq33No6jykj/v3m8W r8ppiNCB0xs+LOISHZCIqL+1GiXCOzslnZH2Bev57sQnF5H5kmf2+UwyKku2qWO1cQWO MoPQ== 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=6Pdpi+9UoXFmBx6WS1nIzeC5GAA4ErfSd67Sd5AqWcg=; b=6hFXh5io0Wwod5uXghXw8IgZbWWrKq+h0yupdJm/WLQZ8TJwBoDoaM3kRcxw5yt0Kf +zGfVebly55yxUl/GudtiIo6VsoAfPxhl3gmXmcrq6U3VhDqpK6OBMdgCpi4hpRSN5FC WPkkID0VHrs40wscYU3iYScGtaD4+STccT8vxKVGLnEpRjZ73HARxiyuUMqebkj16Hhi vXmP8Z+cRDIq5XUAnjzC5MWJSQoHzb6xHZuNvgbe2HtHtI3rG02WH0bkhi/0mwG9G5uQ 5AZQSp61TSOnwwKH1YmTeSznfqTku0KrzDy2whnZJCyTe5H86ebhO5/00u/iCcoAWZoy t/OQ== X-Gm-Message-State: ACrzQf03lgY780XSb8imrsNi6eBowf636aIYVa8cOp0lngdL16ppHMK2 PKkkhgAA4/ZXj51+5PTijMb4wQ== X-Received: by 2002:a05:600c:5127:b0:3c6:47ff:5d33 with SMTP id o39-20020a05600c512700b003c647ff5d33mr19212651wms.68.1667459657899; Thu, 03 Nov 2022 00:14:17 -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 e7-20020a5d5007000000b00236644228besm34910wrt.40.2022.11.03.00.14.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 00:14:17 -0700 (PDT) Message-ID: Date: Thu, 3 Nov 2022 08:14:13 +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 22/44] KVM: RISC-V: Do arch init directly in riscv_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-23-seanjc@google.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20221102231911.3107438-23-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=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 3/11/22 00:18, Sean Christopherson wrote: > Fold the guts of kvm_arch_init() into riscv_kvm_init() instead of > bouncing through kvm_init()=>kvm_arch_init(). Functionally, this is a > glorified nop as invoking kvm_arch_init() is the very first action > performed by kvm_init(). > > Moving setup to riscv_kvm_init(), which is tagged __init, will allow > tagging more functions and data with __init and __ro_after_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/riscv/kvm/main.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Philippe Mathieu-Daudé