Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1558572pxp; Thu, 17 Mar 2022 11:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp8OhJum95PUkHi92nvtN/GWvMrQPJH34G4hj2YpRzP1H4QZ09khIdJOlW0Lb9IqeaYNaJ X-Received: by 2002:a17:903:41c9:b0:153:8a89:de18 with SMTP id u9-20020a17090341c900b001538a89de18mr6577505ple.32.1647541826759; Thu, 17 Mar 2022 11:30:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647541826; cv=none; d=google.com; s=arc-20160816; b=zTuESPDiwpa0XowYxCHOpeHP/Edw0VkuAyKTPNwhnrMaoTksXZOXJQKoAvMxUrYV+c eDrjHwsbUlyWMsnDlaH/BWAwfU7dlvSCB93QEnp3/WMK0hHCAk6m0IPOvrE55UQjVHWR Y6lIQLgq+iw4jxLNpAF6ADM8E/8INEkkscW9fnNdW6pMun1rgm+zahCKrgPUyGuVRqyJ P/4mv0wlm43EZDPdZ1R1ABbOmTdmgFKHbY0wcJFTzqMtpaw2m1d1JePuwYp7SngqePRS Ep/mTNaecIY2lowUAGPp2I9WaF/eoHJYVqcFSD/2QeOw6rrTHfL/2fiHqmpPF7C2MnIb 7YEw== 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; bh=IhH8qyYt7T8RgxbnBKPfs5iD3zdUuHSFn+12n+YWsQ4=; b=FUBCC233i9TdYu/lF7v7O9w8yrQF3SqKm2oil94ch5WlDJb8weIhfP0fU/cMetIc2J 6NjlrfQEIzizsd3eUCxqZeWQTLHMP7sb06jS08bQO7aT71hk3WeVooTZeaM3Fr+FHmsj ouLkZMykTQZwaT1E6ZoXGKmSP2eHm1Us48P76Fc0IYSG+773zqd61h+OQiRg1oeZoKUh DBgrV8Z05741kjAhQHdrese2UdDGarJI7LfEdk0CDmFLvKlAEH+SgN6ZLpgPr35yLERg bHyhwUJ10VRp2h8okrknws49Tk2CXuC0bmCqwZf/mc9I4ERqQ/iwwicy9s7TVnwVrfG0 kXOQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a636e0f000000b003816043efc1si2826479pgc.438.2022.03.17.11.30.11; Thu, 17 Mar 2022 11:30:26 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234530AbiCQN0H (ORCPT + 99 others); Thu, 17 Mar 2022 09:26:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234529AbiCQN0G (ORCPT ); Thu, 17 Mar 2022 09:26:06 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4B54716F6FC; Thu, 17 Mar 2022 06:24:49 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C303B1515; Thu, 17 Mar 2022 06:24:48 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DD8113F766; Thu, 17 Mar 2022 06:24:42 -0700 (PDT) Message-ID: <0d9d605e-4f92-3947-f99d-91faf9dbc2d7@arm.com> Date: Thu, 17 Mar 2022 13:24:41 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v4 2/6] Partially revert "KVM: Pass kvm_init()'s opaque param to additional arch funcs" Content-Language: en-US To: Chao Gao , seanjc@google.com, maz@kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com, kevin.tian@intel.com, tglx@linutronix.de Cc: James Morse , Alexandru Elisei , Catalin Marinas , Will Deacon , Huacai Chen , Aleksandar Markovic , Thomas Bogendoerfer , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , David Hildenbrand , Claudio Imbrenda , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Maciej S. Szmigiero" , Bharata B Rao , Nicholas Piggin , Nick Desaulniers , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, 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 References: <20220216031528.92558-1-chao.gao@intel.com> <20220216031528.92558-3-chao.gao@intel.com> From: Suzuki Kuruppassery Poulose In-Reply-To: <20220216031528.92558-3-chao.gao@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 16/02/2022 03:15, Chao Gao wrote: > This partially reverts commit b99040853738 ("KVM: Pass kvm_init()'s opaque > param to additional arch funcs") remove opaque from > kvm_arch_check_processor_compat because no one uses this opaque now. > Address conflicts for ARM (due to file movement) and manually handle RISC-V > which comes after the commit. > > And changes about kvm_arch_hardware_setup() in original commit are still > needed so they are not reverted. > > Signed-off-by: Chao Gao > Reviewed-by: Sean Christopherson > --- > arch/arm64/kvm/arm.c | 2 +- > arch/mips/kvm/mips.c | 2 +- > arch/powerpc/kvm/powerpc.c | 2 +- > arch/riscv/kvm/main.c | 2 +- > arch/s390/kvm/kvm-s390.c | 2 +- > arch/x86/kvm/x86.c | 2 +- > include/linux/kvm_host.h | 2 +- > virt/kvm/kvm_main.c | 16 +++------------- > 8 files changed, 10 insertions(+), 20 deletions(-) > > diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c > index ecc5958e27fe..0165cf3aac3a 100644 > --- a/arch/arm64/kvm/arm.c > +++ b/arch/arm64/kvm/arm.c > @@ -73,7 +73,7 @@ int kvm_arch_hardware_setup(void *opaque) > return 0; > } > > -int kvm_arch_check_processor_compat(void *opaque) > +int kvm_arch_check_processor_compat(void) > { > return 0; > } For arm64 : Reviewed-by: Suzuki K Poulose