Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1113505rwi; Thu, 3 Nov 2022 00:53:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4vJVn6nTpJZzYMFUJ8TlKX6lvt2R6vIulNwh3ATuCVzC/wk+mtgcwCkwnOVh++lAT5AqP/ X-Received: by 2002:a63:e158:0:b0:464:8d6:8b91 with SMTP id h24-20020a63e158000000b0046408d68b91mr24352832pgk.124.1667462004021; Thu, 03 Nov 2022 00:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667462004; cv=none; d=google.com; s=arc-20160816; b=RgXx6AJbbuL/NyUQ1zG+v4ao9fS3O6gtuVOphgcHQ4/LLwOqXF2wovdeRhoDC16z6k HEyA3jzP9530E9mjb88STQPIwbAagIHwpNXIJ+4fvjujumRxFRyJ3prJDH0YYi7veEVj GwnFyuQg7T9bFhikeGdAlq/a1SKHoLgi4kiWSrSSvo5Dv2oZ0hNz0tMY3O/PuBYw3q2c ZboHelsqbm26ztOhV0IDmiMoMTisJckG8pn+dO+QZrbt+n5/B8GqAl69UOKQIVwbz0th Lojas55oF8IlHSW8zwHOZB0tDmqyqUKOAhgQoCbavh1uFm7LBbVkMRhPXgl6pBJ2erKG RRfg== 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=EDXCjZngZdqFd0T8UNtaJgIVNUXtxy5kh+IvZcYgc3o=; b=h3jTe8oAwF6nEbig0n835i04SCmIsvJM2B2eBM2xLvI+ZqJmUeR/1+j34FQDmNuFsi 2Jp9xLiVIwrGc4avLWDcre1CKAyWDD7eMxyKOQpoGCCX0yCUnq6K4WoESnChgzfnFOJ2 r4GLVTqDwLis3TINT8Hl3eFnL4KxNN4WevPZ3LH99Atc/wrDIBE8KLJ2BNAATW22jYh5 17W42CgFwhKraQnYqeDwRZUUYmZjy8sNrvHqojkZt7CdJckeOwXqOQt3h7+UnL+jFjMF 34IhphkDFCWcFh4QGT8VEf1xwcn8G5io4NQmvm4LP6O4TfohgmQGg5SiUQTWfKv5vZAe x93A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KBb4CRff; 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 u11-20020a65670b000000b0045f83f1eb56si301631pgf.234.2022.11.03.00.53.11; Thu, 03 Nov 2022 00:53:24 -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=KBb4CRff; 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 S229823AbiKCHZs (ORCPT + 97 others); Thu, 3 Nov 2022 03:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbiKCHZo (ORCPT ); Thu, 3 Nov 2022 03:25:44 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6257A103B for ; Thu, 3 Nov 2022 00:25:43 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id l14so1345075wrw.2 for ; Thu, 03 Nov 2022 00:25:43 -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=EDXCjZngZdqFd0T8UNtaJgIVNUXtxy5kh+IvZcYgc3o=; b=KBb4CRffvbqT8vCYmIjrzMCnn1vGDH3hTE8kztkuirWCWDx5vmnnhlY12+76G8HB+D zNMscqf1aWjU1jn9Q/+2qznV1nyjnfJgJejU0eBLDst+wEJ5JP32F9KCikAYwccYRz/4 CEoS+rbiQf+EK76mQ+O07yD4/kZHVOkQQ4sHVGI67dP7iLfCkYZsRk0ZykZuinHxGqnw VBepbg5NHi4yk+ONf1CC+WSt8MwwyKu83Az0OvU8HlQtsrRUhgNXczuxh+p9v62b1ye5 0/LNF3gKJJGGBQ4GVZwf3fHBWg9tW8pDxWcOYgxGkG6PYQEim2NR9gsO5CmPy3fAtv6n sc3w== 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=EDXCjZngZdqFd0T8UNtaJgIVNUXtxy5kh+IvZcYgc3o=; b=RbOXtWQc+hrKfB1/VfeFxirtk/lmrdcOOZHyP7NthD5B66mrJykLa8nTtlR5ZFs7FK MWfs06mDMsuyQGxtbfuGy2ow1a0MTDUGWct3620z7iTSBGziT1mXDfcACYIy/wIoXKor Eb1gS8VCRoeePjPNGGp+CvWubh4P4TyzD/0sJh49r/RqL2OkjFsosl4go0xrBI7IG7ii zjuUtZhLv24CqJxP7jVQRbUagtWbZDmRGaftX5fWH5GwUC0kdH2GVgz11sLaJLFgnA9J f4+anxKVjqx/w8Oilo9jCKueUzcUTO5KV9veCj1On7LHWWX5xPbnoUQPxT74Zqg0Kld+ /U+g== X-Gm-Message-State: ACrzQf2slcVh++pHDAQUQKQaKbjw38n3r4CToZ3719+G1zMwpuaCqC09 YTOn1UTjWSAMBnTfBe6yBVYyoA== X-Received: by 2002:a5d:50ca:0:b0:236:776c:3075 with SMTP id f10-20020a5d50ca000000b00236776c3075mr17956880wrt.656.1667460341889; Thu, 03 Nov 2022 00:25:41 -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 i10-20020a1c540a000000b003a3442f1229sm4408723wmb.29.2022.11.03.00.25.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 00:25:40 -0700 (PDT) Message-ID: Date: Thu, 3 Nov 2022 08:25:37 +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 17/44] KVM: arm64: Do arm/arch initialiation 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-18-seanjc@google.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20221102231911.3107438-18-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Hi Sean, On 3/11/22 00:18, Sean Christopherson wrote: > Move arm/arch specific initialization directly in arm's module_init(), > now called kvm_arm_init(), instead of bouncing through kvm_init() to > reach kvm_arch_init(). Invoking kvm_arch_init() is the very first action > performed by kvm_init(), i.e. this is a glorified nop. > > Making kvm_arch_init() a nop will allow dropping it entirely once all > other architectures follow suit. > > No functional change intended. > > Signed-off-by: Sean Christopherson > --- > arch/arm64/kvm/arm.c | 25 ++++++++++++++++--------- > 1 file changed, 16 insertions(+), 9 deletions(-) > /* NOP: Compiling as a module not supported */ > void kvm_arch_exit(void) > { > - kvm_unregister_perf_callbacks(); Doesn't this belong to the previous patch? > + > }