From patchwork Mon May 8 11:54:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9716123 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 02BDF60234 for ; Mon, 8 May 2017 11:55:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E04FA223C7 for ; Mon, 8 May 2017 11:55:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D540B268AE; Mon, 8 May 2017 11:55:11 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF79B26224 for ; Mon, 8 May 2017 11:55:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754488AbdEHLzJ (ORCPT ); Mon, 8 May 2017 07:55:09 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38550 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754328AbdEHLzD (ORCPT ); Mon, 8 May 2017 07:55:03 -0400 Received: by mail-wm0-f54.google.com with SMTP id 142so62136801wma.1 for ; Mon, 08 May 2017 04:55:03 -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=Pn87nBTi357O+49zOKlzxNGkhenKAliwXOU41pCYDo4=; b=HBg8P1KGd5GVq9iC7Q80Lm+VMlJxJZo0OHRXzR7oSemmcAt+FGj1RpmA6azuXj7cvr PaDtg/YkJCrGmq4LiZsuzA0QfS2f/M4JP4wjFIofnn8kUK6Io2Ki/IyLLgwM+ny5Gp9n VaT6saUoqbvf5aq7Dg2H/H1MGQMfsyKYRtE10= 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=Pn87nBTi357O+49zOKlzxNGkhenKAliwXOU41pCYDo4=; b=NnFHjrlY2MpNtyfnNV6681dXh3WdA2mCFBbfds/co+ZK6P4vvU/M75+INRm2NWXY0T ynU5k3Pa/HLgppmjoXYa9miTKt1iGRRIshkIoq9ndZ2EEgSeDzQSyPwxNM0T57U6Cry5 Y11jrZWMdTfuhjEFhEILMcfj6z2JegAMcppoQ8z+VYq9hPHXQkTfmOU/QhCd8QXZHCAk a9OEMkODUpRVK1nhLvjot9hpUMpdesQW4NmRznKOj+L0XRiE2XeMhlb7TNU8waMdletl DIQWcPWwI5daw7hRVeRYeZd1PN86RbLpbbBuf/JbOR6xClIv5upgyltTJJ5MKwowbs82 poIA== X-Gm-Message-State: AN3rC/5ARvgD/tWiQ0b5F+EYVqGD6TeM6fmhHcsfsluMfpBI6u0E598U N4IOZtSzu5CZwWFjE6DW/A== X-Received: by 10.80.174.131 with SMTP id e3mr16082839edd.166.1494244502525; Mon, 08 May 2017 04:55:02 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id k43sm3483411ede.1.2017.05.08.04.55.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 May 2017 04:55:02 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Cc: kvm@vger.kernel.org, Marc Zyngier , Eric Auger , Christoffer Dall Subject: [PATCH 2/8] KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to kvm_vgic_vcpu_enable Date: Mon, 8 May 2017 13:54:48 +0200 Message-Id: <20170508115454.5075-3-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170508115454.5075-1-cdall@linaro.org> References: <20170508115454.5075-1-cdall@linaro.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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)