Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1113332rwi; Thu, 3 Nov 2022 00:53:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xHQXeQp6VhIDwU3XcRaMw4g/wTS7fjEzT6/QmkzwMkSegxZsldl2A5fihye7sJ8HYqg3i X-Received: by 2002:a05:6a00:340f:b0:56d:b039:202 with SMTP id cn15-20020a056a00340f00b0056db0390202mr15367707pfb.2.1667461990564; Thu, 03 Nov 2022 00:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667461990; cv=none; d=google.com; s=arc-20160816; b=NXRBm49IR0C49bbgyhDfAU1DBinJB2KwmdTEEyMQ+VoWPn58CjWtIw+tWMC10rIbBS +v62jR08HDeLoLhGvi8ctZBsZbrd02ZoCx5UEnzjDTla8pHh2HR6pd7MP5BTp9+gBG+l 6++OxguGLgAKPWmPbFgLfu9zVPoY9ziYMEdYNBi6O3a7B9EQibP2WVPui0DdmjL74ugX JKR89I7k8q984YvBDM71oGM4x8Fu3tpoO/fzOjY3wEdlbfGxp5/EhmJqrblYptcj6JRP Y3mNOJBVqREgV/2o8qTiwloYP2CSsAz1XCzHJeb1JpbtzwoRvnFj9SVsW/i403zS9oPv r14Q== 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=CvhsZshQWEcVMeUTUtOp+ihfqDRpu56SkXuVG8Len34=; b=OLFDq/vi23BYcucPbvPY3zVQVsuUS68aj1oPb/TpOqcNxSGZ1fAQB/nvDirnETXY8Z 7+XPRz/uXlp7p3DOgu5tjJlRhHYeTzszMT2I0Mw8PPJl266WJ3/fHE4/S3BuuK1d0oqf kEEGDjlWHHmIgn0C397L6Wkvyb9jaDi8x83mW1bzgZEn62+ICLjZKEznfaq62WkOfr8a PPxa+PtVzU9UOaT/2Hqxtd6uuQ2FhTciy+Ia1y/cJ0/GNCYhe57Xb15shu5miES1oudo VZrZy+vTF0UCj1AQyI8bd4226gTKC82S2Cbc3DcXndnyMNPFc6qMh1XQKMegsZhkQXte bOMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kHZDPyIo; 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 o22-20020a63e356000000b0047008fd7bb2si250338pgj.404.2022.11.03.00.52.58; Thu, 03 Nov 2022 00:53:10 -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=kHZDPyIo; 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 S230338AbiKCHMJ (ORCPT + 97 others); Thu, 3 Nov 2022 03:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbiKCHLu (ORCPT ); Thu, 3 Nov 2022 03:11:50 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30DD62A2 for ; Thu, 3 Nov 2022 00:11:03 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so557245wmb.0 for ; Thu, 03 Nov 2022 00:11:03 -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=CvhsZshQWEcVMeUTUtOp+ihfqDRpu56SkXuVG8Len34=; b=kHZDPyIo8df19dqlQHWniGoyDch8A+hISU8X6gd7fp1VbScHETGhbytjJYmkhLQHKf fwi1nthEtQPwse9uctHll81mNdW31rmNNRadEcJOVs4CiYzIp2cFwfJ+eDzavRkFrV7o df5jmaTAaQvLc9v1sSmbABx4C5Rzw1nTgw7iXi1sO9xpDPFNsNp3LKzpz90wTIQNwZ1t Ho+YhWAPx1xMmOMWNMoEs/sIV1YU/vXuH0Fvy5rAwr8dsko79NvLMAybJkyUdKsceRMO iXCBxeebKyqxkZinLCfgL7TweGZd1asuEGHKg2vBla0voczqpexKdljfuec7O93BtHaM wjHw== 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=CvhsZshQWEcVMeUTUtOp+ihfqDRpu56SkXuVG8Len34=; b=4DAgU+9iqCUnZVgrxahheGARaQpp8/OpzQ25jDMX6ZmlWXCDmywRFL5Omind5enLya Xzq/GxllvRKpaYKsTmXWSKzSDndYih1CvGJj1XV6PMMsVz7gWJxRm6jDXHNEQLL2p4fV M2RKVa9xyBqe4qko/qbeTFuUxb4W5zOElaJwIaT8Xs608ah0PoQDWSUbtARJYcTlqbsm gzqsDQIC1anjVjD3DUfT7KjFV+lwhqoVaQFxkBYBt3jfxycU+9dNXxsmy1689ByRVdBA IyZ57iMHizdJZSMNNIbufZtjx6o/3zurLNL0Bo4wnesAeUxGu7zSCzfR7Oirl9qjwvmr bQ3w== X-Gm-Message-State: ACrzQf0LgktYAEuUqEhoIhiqhri53D6XK9oBsRmsKsGHqXC39yNjCKn2 CB9sCgjIdomgatTQ71nPrf93cw== X-Received: by 2002:a05:600c:1:b0:3c6:c456:f07a with SMTP id g1-20020a05600c000100b003c6c456f07amr18797697wmc.158.1667459461681; Thu, 03 Nov 2022 00:11:01 -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 y16-20020adff6d0000000b0023647841c5bsm17017wrp.60.2022.11.03.00.10.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 00:11:01 -0700 (PDT) Message-ID: Date: Thu, 3 Nov 2022 08:10:57 +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 20/44] KVM: MIPS: Setup VZ emulation? directly from kvm_mips_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-21-seanjc@google.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20221102231911.3107438-21-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: > Invoke kvm_mips_emulation_init() directly from kvm_mips_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(). > > 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/mips/kvm/mips.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé