From patchwork Tue May 9 08:56:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9717345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AD6AE60365 for ; Tue, 9 May 2017 08:57:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1D1D200F5 for ; Tue, 9 May 2017 08:57:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96B62205D1; Tue, 9 May 2017 08:57:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 19A46200F5 for ; Tue, 9 May 2017 08:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SCuNJyAnLWzYtR5IEfv3scpR47q2hNYO7awsuIWre44=; b=q+buoMEL1wt0qHUNteGHuM2jeX dCsVtXNvNhBSs3W5ORG/QKI+iuarrnREkpTonL58QxOQD3IVrXNzVDdUqBGUDSJiY7ohvmmEjZGYB ruKKI9p+1U8vtI/+6SNccglrsCIK/O8Z6+IKf7WlqVaSoBTZg8IbcbE+g0qEFbPGWaT7iB6CdUZyn 883K7JMMyUQ4H/abKABqlIj9hajioBsv5jngcBllSzxJFZctiVIlbEeN1EWxH3JaYqVGP4pp9zrB+ w/bHnTz4jIfGj2VjveEeIL34m+apYIGZsmwByW6KGlvYDlkKosL3J6+19bDLnJG1M9CrR49s51hBf qp0sDQDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d80xW-0003Gd-8j; Tue, 09 May 2017 08:57:30 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d80wq-0002Ht-FW for linux-arm-kernel@lists.infradead.org; Tue, 09 May 2017 08:56:50 +0000 Received: by mail-wm0-x232.google.com with SMTP id b84so3381606wmh.0 for ; Tue, 09 May 2017 01:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZwfOyUC50UTpOYOu+tVxpn/iSZ7MoXcAaASLzfuQPIA=; b=eGPCJd3Hh2sWC2i74TRxnA9C85hWODXN6cKNCSVF8dF7LS56TMWAjvA/X/xdZReJ4F 2EsL3xWZ7hTXaGYS/XcX5Uvh0mJFdQfmN9LkjGkUXiHiJm2PYQ7vKGujYKIi11V50B9j N2j8OO8w47rFKHxRXkLpLvlTka+XWVpdEO3EY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZwfOyUC50UTpOYOu+tVxpn/iSZ7MoXcAaASLzfuQPIA=; b=uURlWSGeI9EKT8Ty7vg7ZxJQR2bp/DBpXUB09OEHd/YoRmbQrkGkj/hRtyqomxrlfK N83GRuEmjAlSvmufP/tyquDSa+BTvjDQcC3QOaIz5C2X9FuzjdqMJsOwNY1A0KoimY1x ike46DJ7RDUzR4Syh0aOYXA0xZxIr8vz0GrpfTj3xTQvSjwZR4nDTpxczlO/99OOBWIt 2FDuXtE3WFb7frkyzRPk3EamOSkJvVvLE8WZJoWsOzltLr2UeRoSFCYgBtu1cJm/4iLu 0bEpT7KMTc+aXQP4Y4dWuqyaI7S/Nif7buIvRKzR/3LaPjw/Oge+PFPsWp2VW39K4k+M GxRw== X-Gm-Message-State: AODbwcCPZp6f7TSQU+2eeO8/Epid+lQ5ZVk4rMMoj5XIQHuF9A8URsYV Dg+T81jrZRJn5e/x X-Received: by 10.80.131.67 with SMTP id 61mr10195189edh.21.1494320186729; Tue, 09 May 2017 01:56:26 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id f40sm8376265edb.7.2017.05.09.01.56.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 May 2017 01:56:26 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 02/11] KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to kvm_vgic_vcpu_enable Date: Tue, 9 May 2017 10:56:09 +0200 Message-Id: <20170509085618.28311-3-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170509085618.28311-1-cdall@linaro.org> References: <20170509085618.28311-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170509_015648_672921_23AAC02E X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Eric Auger , kvm@vger.kernel.org, Christoffer Dall MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This function really doesn't init anything, it enables the CPU interface, so name it as such, which gives us the name to use for actual init work later on. Signed-off-by: Christoffer Dall Reviewed-by: Eric Auger --- virt/kvm/arm/vgic/vgic-init.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index 87de048..0ea64a1 100644 --- a/virt/kvm/arm/vgic/vgic-init.c +++ b/virt/kvm/arm/vgic/vgic-init.c @@ -226,11 +226,7 @@ static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) return 0; } -/** - * kvm_vgic_vcpu_init() - Enable the VCPU interface - * @vcpu: the VCPU which's VGIC should be enabled - */ -static void kvm_vgic_vcpu_init(struct kvm_vcpu *vcpu) +static void kvm_vgic_vcpu_enable(struct kvm_vcpu *vcpu) { if (kvm_vgic_global_state.type == VGIC_V2) vgic_v2_enable(vcpu); @@ -269,7 +265,7 @@ int vgic_init(struct kvm *kvm) dist->msis_require_devid = true; kvm_for_each_vcpu(i, vcpu, kvm) - kvm_vgic_vcpu_init(vcpu); + kvm_vgic_vcpu_enable(vcpu); ret = kvm_vgic_setup_default_irq_routing(kvm); if (ret)