Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3140752imm; Sun, 7 Oct 2018 21:27:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV633yaWdfoh6FYHdOR4r/IlB8BMOtFboGLCIrSfyGeFZ2dm8L+kvb6ZMia5bXdJPRcU56LhX X-Received: by 2002:a65:41c6:: with SMTP id b6-v6mr20051484pgq.421.1538972869949; Sun, 07 Oct 2018 21:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538972869; cv=none; d=google.com; s=arc-20160816; b=nvxRZeLGrcz4ZMiZGkQFrqJBA95Mi2YEEWk6YuFr04OfPmoM1apkOrdy/rVxAzqw1V AkzCPxskg6NnYAyJZqIFAMxukwKn99qkfl2yjqc4f/fXTuaL+/22CDqjmrR/tV4b1CXl qJSBXsAhLhVMqaQEPubdbRvgAg5Mxz6lGc2EqtdU67rH9UqmZJzn4bvfl4rCdbVb0QdV 7And1kDIrcKPapb/ooz263oGMJpGUVixZAuxfOhEvUT3qwg9Es+0OfDDUJuJCtdhUmpA LK7ykJ/Xc2uhGx+Bbdn0GQ992f78V46HDpXAJCwWomyAO49+IFQ3s7W/ZdBPd6+4iufj hwtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=RH+HNTjtNtreNSTUEvSyzDI+rALC6OcEOQLrV16ppM4=; b=lim5Ko8A1uaRCX48maVpsaktpcqVMWei9+hAJSgroVXlZMaYvFuIZuw6psFO4xBqrw BecVkBzS8sLNQg5Bz5W8Esdv6e6WQPLTXwnwLM2tp4BORuxEcZlsYLGt6/lVYP4sdolN KNP0aONxoo6SOcSJxNbuzk/jHQz7maszp0vZr3JQlP3km2RIuGCX7guHXBiEzTmWq54w /FTZJjjbQH3dNp1qa+4ePMp6Fc1uQJ+IYriW5S89+ccoCpUuyOwfUhqPx7NpmRUbf54Y kJgBJpKne1ci7HqGQ2BLpUxxZYUH2QqaqpZk4ZgNDDgoAsU2p3v0Kot+uUxQ1H9pF4T1 pNgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f132-v6si14840494pgc.484.2018.10.07.21.27.21; Sun, 07 Oct 2018 21:27:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbeJHLg4 (ORCPT + 99 others); Mon, 8 Oct 2018 07:36:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13601 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726013AbeJHLgz (ORCPT ); Mon, 8 Oct 2018 07:36:55 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 046C230097CF9; Mon, 8 Oct 2018 12:27:10 +0800 (CST) Received: from localhost.localdomain (10.143.28.90) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.399.0; Mon, 8 Oct 2018 12:27:05 +0800 From: Dongjiu Geng To: , , , , , , , , CC: Subject: [PATCH v2 1/2] arm/arm64: KVM: rename function kvm_arch_dev_ioctl_check_extension() Date: Mon, 8 Oct 2018 08:34:47 -0400 Message-ID: <1539002088-21215-2-git-send-email-gengdongjiu@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539002088-21215-1-git-send-email-gengdongjiu@huawei.com> References: <1539002088-21215-1-git-send-email-gengdongjiu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.143.28.90] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename kvm_arch_dev_ioctl_check_extension() to kvm_arch_vm_ioctl_check_extension(), because it does not have any relationship with device. Renaming this function can make code readable. Cc: James Morse Signed-off-by: Dongjiu Geng --- I remeber James also mentioned that rename this function. --- arch/arm/include/asm/kvm_host.h | 2 +- arch/arm64/include/asm/kvm_host.h | 2 +- arch/arm64/kvm/reset.c | 4 ++-- virt/kvm/arm/arm.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h index 3ad482d..3ee29db 100644 --- a/arch/arm/include/asm/kvm_host.h +++ b/arch/arm/include/asm/kvm_host.h @@ -273,7 +273,7 @@ static inline void __cpu_init_stage2(void) kvm_call_hyp(__init_stage2_translation); } -static inline int kvm_arch_dev_ioctl_check_extension(struct kvm *kvm, long ext) +static inline int kvm_arch_vm_ioctl_check_extension(struct kvm *kvm, long ext) { return 0; } diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 3d6d733..c20537f 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -53,7 +53,7 @@ int __attribute_const__ kvm_target_cpu(void); int kvm_reset_vcpu(struct kvm_vcpu *vcpu); -int kvm_arch_dev_ioctl_check_extension(struct kvm *kvm, long ext); +int kvm_arch_vm_ioctl_check_extension(struct kvm *kvm, long ext); void __extended_idmap_trampoline(phys_addr_t boot_pgd, phys_addr_t idmap_start); struct kvm_arch { diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c index e37c78b..fd37c53 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -55,12 +55,12 @@ static bool cpu_has_32bit_el1(void) } /** - * kvm_arch_dev_ioctl_check_extension + * kvm_arch_vm_ioctl_check_extension * * We currently assume that the number of HW registers is uniform * across all CPUs (see cpuinfo_sanity_check). */ -int kvm_arch_dev_ioctl_check_extension(struct kvm *kvm, long ext) +int kvm_arch_vm_ioctl_check_extension(struct kvm *kvm, long ext) { int r; diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index c92053b..40e79ea 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -240,7 +240,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) r = 1; break; default: - r = kvm_arch_dev_ioctl_check_extension(kvm, ext); + r = kvm_arch_vm_ioctl_check_extension(kvm, ext); break; } return r; -- 1.9.1